Closed oleganza closed 5 years ago
Currently from_bytes allows trailing garbage in byte slices. This applies both to RangeProof and to the upcoming R1CSPRoof serialization #243.
from_bytes
Oops, i was wrong: the IPP proof's from_bytes interprets the entire slice as an IPP proof and makes sure it has exactly 2+2lg(n) 32-byte elements.
2+2lg(n)
Currently
from_bytes
allows trailing garbage in byte slices. This applies both to RangeProof and to the upcoming R1CSPRoof serialization #243.