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:51

piHash = keccak256(abi.encode(DepositRequest, aux, feeAux)), as MASP.deposit computes it.

feeAux is the encrypted payload of the note paying the relayer. The payer's Permit2 witness covers both leaves a deposit mints, so neither can be replaced after signing.

Parameters ​

ParameterType
depositDepositRequest
auxAuxOutput
feeAuxAuxOutput

Returns ​

Hex32