cardano-ledger
cardano-ledger copied to clipboard
CBOR deserializer can't decode indefinite-length keyhashes
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.