Expand description
Poseidon2 hash functions for the Aztec protocol.
Provides poseidon2_hash_with_separator and derived functions that mirror the
TypeScript SDK’s hashing utilities.
Structs§
- Chain
Info - Chain identification information.
Enums§
- Message
Hash OrIntent - Either a raw message hash, a structured call intent, or a pre-computed inner hash with its consumer address.
Functions§
- abi_
values_ to_ fields - Flatten ABI values into their field element representation.
- compute_
auth_ wit_ message_ hash - Compute the full authwit message hash from an intent and chain info.
- compute_
inner_ auth_ wit_ hash - Compute the inner authwit hash — the “intent” before siloing with consumer.
- compute_
inner_ auth_ wit_ hash_ from_ action - Compute the inner authwit hash from a caller address and a function call.
- compute_
outer_ auth_ wit_ hash - Compute the outer authwit hash — the value the approver signs.
- compute_
var_ args_ hash - Hash function arguments using Poseidon2 with the
FUNCTION_ARGSseparator. - poseidon2_
hash_ with_ separator - Compute a Poseidon2 hash of
inputswith a domain separator prepended.