> Aztec.nr API reference, v6.0.0 (mainnet and testnet). Index: https://docs.aztec.network/aztec-nr-api/v6.0.0/llms.txt

# Module hash

Module: `protocol_types::hash`

## Functions

- [accumulate_sha256](/aztec-nr-api/v6.0.0/protocol_types/hash/fn.accumulate_sha256.md): Computes sha256 hash of 2 input fields.
- [accumulate_sha256_with_separator](/aztec-nr-api/v6.0.0/protocol_types/hash/fn.accumulate_sha256_with_separator.md): Computes sha256 hash of 2 input fields, prefixed by a domain separator, so that the result cannot collide with an [`accumulate_sha256`](/aztec-nr-api/v6.0.0/protocol_types/hash/fn.accumulate_sha256.md) over the same two fields.
- [compute_app_siloed_secret_key](/aztec-nr-api/v6.0.0/protocol_types/hash/fn.compute_app_siloed_secret_key.md)
- [compute_contract_class_log_hash](/aztec-nr-api/v6.0.0/protocol_types/hash/fn.compute_contract_class_log_hash.md)
- [compute_l2_to_l1_message_hash](/aztec-nr-api/v6.0.0/protocol_types/hash/fn.compute_l2_to_l1_message_hash.md)
- [compute_log_tag](/aztec-nr-api/v6.0.0/protocol_types/hash/fn.compute_log_tag.md)
- [compute_note_hash_nonce](/aztec-nr-api/v6.0.0/protocol_types/hash/fn.compute_note_hash_nonce.md)
- [compute_note_nonce_and_unique_note_hash](/aztec-nr-api/v6.0.0/protocol_types/hash/fn.compute_note_nonce_and_unique_note_hash.md)
- [compute_siloed_note_hash](/aztec-nr-api/v6.0.0/protocol_types/hash/fn.compute_siloed_note_hash.md): 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.
- [compute_siloed_nullifier](/aztec-nr-api/v6.0.0/protocol_types/hash/fn.compute_siloed_nullifier.md)
- [compute_siloed_private_log](/aztec-nr-api/v6.0.0/protocol_types/hash/fn.compute_siloed_private_log.md)
- [compute_siloed_private_log_first_field](/aztec-nr-api/v6.0.0/protocol_types/hash/fn.compute_siloed_private_log_first_field.md)
- [compute_unique_note_hash](/aztec-nr-api/v6.0.0/protocol_types/hash/fn.compute_unique_note_hash.md): Computes unique, siloed note hashes from siloed note hashes.
- [create_protocol_nullifier](/aztec-nr-api/v6.0.0/protocol_types/hash/fn.create_protocol_nullifier.md)
- [poseidon2_absorb_in_chunks_existing_sponge](/aztec-nr-api/v6.0.0/protocol_types/hash/fn.poseidon2_absorb_in_chunks_existing_sponge.md)
- [poseidon2_hash](/aztec-nr-api/v6.0.0/protocol_types/hash/fn.poseidon2_hash.md)
- [poseidon2_hash_bytes](/aztec-nr-api/v6.0.0/protocol_types/hash/fn.poseidon2_hash_bytes.md): Computes a Poseidon2 hash of a fixed string, such as a function signature or a domain separator name.
- [poseidon2_hash_subarray](/aztec-nr-api/v6.0.0/protocol_types/hash/fn.poseidon2_hash_subarray.md): Computes a Poseidon2 hash over a dynamic-length subarray of the given input. Only the first `in_len` fields of `input` are absorbed; any remaining fields are ignored. The caller is responsible for ensuring that the input is padded with zeros if required.
- [poseidon2_hash_subarray_with_separator](/aztec-nr-api/v6.0.0/protocol_types/hash/fn.poseidon2_hash_subarray_with_separator.md): 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`](/aztec-nr-api/v6.0.0/protocol_types/hash/fn.poseidon2_hash_with_separator.md).
- [poseidon2_hash_with_separator](/aztec-nr-api/v6.0.0/protocol_types/hash/fn.poseidon2_hash_with_separator.md)
- [poseidon2_hash_with_separator_bounded_vec](/aztec-nr-api/v6.0.0/protocol_types/hash/fn.poseidon2_hash_with_separator_bounded_vec.md)
- [private_functions_root_from_siblings](/aztec-nr-api/v6.0.0/protocol_types/hash/fn.private_functions_root_from_siblings.md)
- [sha256_to_field](/aztec-nr-api/v6.0.0/protocol_types/hash/fn.sha256_to_field.md)
