aztec-nr - noir_aztec::utils::conversion::bytes_as_fields

Function decode_bytes_from_fields

pub fn decode_bytes_from_fields<let N: u32>(
    fields: BoundedVec<Field, N>,
) -> BoundedVec<u8, N * 31>

Decodes fields back into bytes.

Inverse of encode_bytes_as_fields. Each input Field must fit in 248 bits; Field::to_be_bytes::<31>() fails the proof otherwise.