Commit Graph

3 Commits

Author SHA1 Message Date
dasrun-fadben
d66de5b486 bitcoin-utils: fix encoding of CompactSize integers
Encoding an atom as a Compact fails when a = 0: a 4-byte CompactSize is
emitted.
2022-07-15 17:06:12 -06:00
dasrun-fadben
fee929ec33 bitcoin-utils: Fix parsing of of CompactSize integers
When the first byte is greater or equal to 0xfd, (bex len) bytes are consumed to
form the csiz atom, but only one byte is dropped from the 'rest' of the input.

The parser should consume all bytes of the CompactSize.
2022-07-15 17:06:12 -06:00
Liam Fitzgerald
143a8e08e6 various: fix dependencies & tests 2021-09-17 14:51:19 +10:00