summa-tx / riemann

rapid prototyping transaction toolbox for Bitcoin-style chains 🎈 🎈
Other
114 stars 19 forks source link

Enforce compact VarInts in Zcash #56

Closed prestwich closed 6 years ago

prestwich commented 6 years ago

Was rereading the spec. Zcash does not allow VarInts to be expressed using more bytes than necessary. e.g. expressing 0xffff as 0xfeffff0000.

This is a good thing that I wish all chains would do.