For the complete documentation index, see llms.txt.
aztec-nr - noir_aztec::protocol::hash

Function poseidon2_hash_subarray_with_separator

pub fn poseidon2_hash_subarray_with_separator<let N: u32, T>(
    input: [Field; N],
    in_len: u32,
    separator: T,
) -> Field
where T: ToField

Computes a Poseidon2 hash with a domain separator over a dynamic-length subarray of the given input. Only the first in_len fields of input are absorbed; any remaining fields are ignored. For in_len == N this is equivalent to poseidon2_hash_with_separator.