I'm trying to deserialize a CBOR message that I'm getting over FFI (Project Panama), but I keep gett...
p
I'm trying to deserialize a CBOR message that I'm getting over FFI (Project Panama), but I keep getting a
kotlinx.serialization.cbor.internal.CborDecodingException: Expected start of string, but found 50
error. The byte array data seems to be the same as the original one in Rust when converting them to a hexadecimal format. I can deserialize normally the same data on Rust through the
cbor4ii
library. I also tried using another library (
cborium
) and I still get the same error in the Kotlin side.
d
Create an issue with the blob and the Kotlin serializer.
p
The blob?
d
The binary data
p
Oh
Should I post the hexadecimal conversion or something else?
d
A Kotlin file will do. Something that can be easily ran.
p
Thank you!