Skip to main content

buffer_from_fields

Function buffer_from_fields 

Source
pub fn buffer_from_fields(fields: &[Fr]) -> Result<Vec<u8>, Error>
Expand description

Reconstruct a byte buffer from field elements produced by buffer_as_fields.

The first field is the original buffer length. Subsequent fields each contribute 31 bytes (from bytes [1..32] of the big-endian representation).