cardano-ledger icon indicating copy to clipboard operation
cardano-ledger copied to clipboard

CBOR deserializer can't decode indefinite-length keyhashes

Open Soupstraw opened this issue 2 years ago • 0 comments

The CBOR deserializer fails with DeserialiseFailure 0 "expected bytes" when trying to deserialise the following bytes into a KeyHash Staking' (AlonzoEra C_Crypto):

5F       # bytes(*)
  58 20  # bytes(32)
    AE85D245A3D00BFDE01F59F3C4FE0B4BFAE1CB37E9CF91929EADCEA4985711DE
    FF   # break

Similar bugs seem to appear in other places as well, since all (?) deserialisers seem to not be agnostic in terms of finite/indefinite lists and bytestrings.

Soupstraw avatar Aug 25 '22 13:08 Soupstraw