Emurgo / cardano-serialization-lib

This is a library, written in Rust, for serialization & deserialization of data structures used in Cardano's Haskell implementation of Alonzo along with useful utility functions.
Other
234 stars 125 forks source link

error deserialization signed transaction #677

Closed dev-dantealighieri closed 1 month ago

dev-dantealighieri commented 2 months ago

hi

I get the following error when I try to deserialize signed transaction using your library, i used rosetta to construct and sign the transaction, what might be the problem?

"Deserialization failed in Transaction.body.TransactionBody because: Invalid cbor: not the right type, expected `Map' byte received `Text'."

thanks, dante

example signed transaction that i want to deserialize:


827901c2383461343030383138323538323063393037366466396364346238353063653132633332643965326434303163323064323037633935346138643862376137343665663666383734333665383431303130313831383235383339303138666635653430366637323861316232316635363663613833366236363165386435636339373431376562626334656631613063613631393866663565343036663732386131623231663536366361383336623636316538643563633937343137656262633465663161306361363139316130303139363765323032316130303032383561313033316166666666666666666131303038313832353832306132663332633463346333623333393430653639393532383861656230623936366632666137356134353631373139313439363636626164356138343263623735383430316238346531346364396239616465373262386333373531326265376438613335343138393238316563343837363763303839396266303830323232396439356238343234333761323234363764353937623635633930613134333561663464393162313765626235646230623631383133363632386134613266653137306166356636a16a6f7065726174696f6e7380```
lisicky commented 2 months ago

Seems your tx is wrapped by additional struct. You can observe it via https://cardananium.github.io/cquisitor/ . Unfortunately CSL doesn't know this format because it is not part of the CDDL . You can unwrap tx cbor by a third party tool/lib and then decode by CSL.

lisicky commented 1 month ago

Close it since it's not CSL issue