verifyStateSignature
@totemsdk/omnia / verifyStateSignature
Function: verifyStateSignature()
verifyStateSignature(
channel,state,partyId,publicKeyDigest):boolean
Verify a channel state signature using off-chain WOTS verification.
- Rebuilds the canonical Minima update transaction digest and uses
wotsVerifyDigestto compare it against the party's stored public key digest.
Because the commitment covers the full off-chain state (sequence + balance split + pending HTLCs), any tampering with these fields after signing will cause verification to fail, preserving the integrity of dispute evidence.
Parameters
channel
state
partyId
string
publicKeyDigest
string
Returns
boolean