Skip to content

Tags: kubo39/rlp

Tags

v0.5.1

Toggle v0.5.1's commit message
decode: make list consume only its own payload

The list decoder looped until input was empty, so it swallowed any bytes
following the list and could not decode concatenated lists. Slice out the
payloadLen bytes that belong to the list, consume exactly that much from
input, and decode elements within that slice.

v0.5.0

Toggle v0.5.0's commit message
decode: set isList for every prefix and reject byte string as list

decodeHeader left isList unset for the short byte-string prefixes
(0x00..0x7F, 0x80..0xB7), so the list decoders relied on the caller's
isList: true init value and could not reject a byte string given where a
list was expected. Set isList explicitly for every prefix and turn the
assert(header.isList) guards into enforce!UnexpectedString.

v0.4.1

Toggle v0.4.1's commit message
decode: fix long-form header consuming length bytes before reading

Add a regression test for the long-form path (payload >= 56).

v0.4.0

Toggle v0.4.0's commit message
support BigInt decoding

v0.3.0

Toggle v0.3.0's commit message
make encodeHeader/decodeHeader public

v0.2.1

Toggle v0.2.1's commit message
Unqualified type params for isRlpEncodable template

v0.2.0

Toggle v0.2.0's commit message
Add encoding support for struct and Nullable

v0.1.0

Toggle v0.1.0's commit message
Initial release