aztec-nr - protocol_types::hash
Module hash
Functions
- Computes sha256 hash of 2 input fields.
- Computes unique 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. - 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.