aztec-nr - noir_aztec::oracle::auth_witness

Function get_auth_witness_as_bytes

pub unconstrained fn get_auth_witness_as_bytes<let N: u32>(
    message_hash: Field,
) -> [u8; N]

Fetches an auth witness and casts each field to a byte.

Each field is range-checked to [0, 256) before casting to prevent silent truncation (e.g. a field value of b + 256 would truncate to the same byte as b).