@lelantos-org/sdk / protocol / auxDigest
Function: auxDigest()
ts
function auxDigest(aux): bigint;Defined in: @lelantos-org/sdk/dist/protocol/abi-hash.d.ts:66
keccak256(abi.encode(aux)) mod r over the whole AuxValidation.Output array: binds the encrypted-note payloads the relayer carries in calldata. Mirrors PubInputs.sol, which must recompute it from the aux calldata, not accept it as an input.
The clue fields are bound per output; this digest covers ephPub and ciphertext as well. Without it a relayer could keep the clue intact (the proof verifies and the recipient's FMD scan flags the note) while corrupting the payload, leaving the recipient unable to open a note whose inputs are already spent.
Encoded as a dynamic tuple[], so the array length is part of the preimage.
Parameters
| Parameter | Type |
|---|---|
aux | readonly AuxOutput[] |
Returns
bigint