Closed limonadev closed 3 years ago
Thank you ademir. This is great. Do you have a specification to link to for this PR? I actually have never looked at how these should serialize. I just want to make sure that it works correctly. In parts of the code I mistakenly used a incorrect signed encoding of bigint, when they were always supposed to be unsigned, and I had to fix that.
I followed the rules from this book, but also found the specification about the varint encoding/decoding for bitcoin.
This PR fixes the next details on the title methods:
Exception
for negative values on both.varIntWriter
.