@armada/sdk / index / computeSpendIntentDigest
Function: computeSpendIntentDigest()
computeSpendIntentDigest(
context):bigint
Defined in: src/tx/witness.ts:71
Recompute the spend-auth digest (message) from an intent context — poseidon([merkleRoot, boundParamsHash, ...nullifiers, ...commitmentsOut]). A SpendSigner implementation calls this and asserts it equals the message it was asked to sign, so a compromised host cannot pair a benign context with a malicious digest (SPEC §4.2.1). CctpBinding type re-exported for signer authors.
Parameters
context
Returns
bigint