elements_to_bytes

Function elements_to_bytes 

Source
pub fn elements_to_bytes(felts: &[BaseElement]) -> Vec<u8> 
Expand description

Converts field elements to raw byte representation.

Each Felt is converted to its full ELEMENT_BYTES representation, in little-endian form and canonical form, without any padding removal or validation. This is the inverse of bytes_to_elements_exact.

§Arguments

  • felts - Slice of field elements to convert

§Returns

Vector containing the raw bytes from all field elements