IntersectMBO / IntersectMBO/cardano-ledger

CBOR deserializer can't decode indefinite-length keyhashes

Open
#3,003 0 comments 0 reactions 0 assignees View on GitHub
bug DijkstraEra
Dominant language
Haskell
Stars
295
Forks
179
Avg merge
4d 7h
Merged PRs (30d)
29

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.