This PR adds InnerProductProof::to_bytes_iter which similar to proof.to_bytes().into_iter(), but doesn't allocate, and uses it in serialization of R1CSProof.
LGTM, i'd only make it pub(crate) for now. In a separate PR we can roll out public to_bytes_iter() APIs for both IPP, R1CS and rangeproofs. Then we'll probably know how to better name all of them.
This PR adds
InnerProductProof::to_bytes_iter
which similar toproof.to_bytes().into_iter()
, but doesn't allocate, and uses it in serialization ofR1CSProof
.Unresolved questions: