Skip to content

computeEnvelopeId

PQSafe AgentPay API Reference v0.1.0


PQSafe AgentPay API Reference / computeEnvelopeId

Function: computeEnvelopeId()

computeEnvelopeId(envelopeJson, keccak256Fn): string

Defined in: pqsafe/agent-pay/src/arbitrum.ts:92

Compute the on-chain envelopeId (keccak256 of envelope JSON bytes). Requires a keccak256 implementation injected via ArbitrumRegistryConfig.

Parameters

envelopeJson

string

keccak256Fn

(data) => Uint8Array

Returns

string