Skip to content

@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 โ€‹

ParameterType
depositDepositRequest
auxAuxOutput
feeAuxAuxOutput

Returns โ€‹

Hex32

Lelantosno cookies ๐Ÿช ยท no tracking ๐Ÿ‘๏ธ ยท no accounts ๐Ÿ‘คwalletexplorer4536080GitHub