@lelantos-org/sdk / protocol / computePiHash
Function: computePiHash() โ
ts
function computePiHash(
deposit,
aux,
feeAux
): Hex32;Defined in: @lelantos-org/sdk/dist/protocol/abi-hash.d.ts:59
Compute piHash = keccak256(abi.encode(DepositRequest, aux, feeAux)). Mirrors MASP.deposit's keccak256(abi.encode(d, aux, feeAux)).
feeAux is the encrypted payload of the note paying the relayer โ a deposit mints two leaves, and both are covered by the payer's Permit2 witness so neither can be swapped after signing.
Parameters โ
| Parameter | Type |
|---|---|
deposit | DepositRequest |
aux | AuxOutput |
feeAux | AuxOutput |