Module fields_to_bytes
Functions
- Converts an input BoundedVec of bytes into a BoundedVec of fields. Arbitrary byte arrays are not allowed: this is assumed to be an array obtained via
fields_to_bytes, i.e. one that actually represents fields. To convert a byte array into Fields, usebytes_to_fields. - Converts an input array of fields into a single array of bytes. Use
fields_from_bytesto obtain the original field array. Each field is converted to a 32-byte big-endian array.