aztec-nr - protocol_types::hash
Module hash
Functions
- Computes sha256 hash of 2 input fields.
- Siloing in the context of Aztec refers to the process of hashing a note hash with a contract address (this way the note hash is scoped to a specific contract). This is used to prevent intermingling of notes between contracts.
- Computes unique, siloed note hashes from siloed note hashes.
- Computes a Poseidon2 hash over a dynamic-length subarray of the given input. Only the first
in_lenfields ofinputare absorbed; any remaining fields are ignored. The caller is responsible for ensuring that the input is padded with zeros if required. - Computes a Poseidon2 hash with a domain separator over a dynamic-length subarray of the given input. Only the first
in_lenfields ofinputare absorbed; any remaining fields are ignored. Forin_len == Nthis is equivalent toposeidon2_hash_with_separator.