Skip to main content

verifyStateSignature

@totemsdk/omnia


@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
  • wotsVerifyDigest to 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

OmniaChannel

state

SignedChannelState

partyId

string

publicKeyDigest

string

Returns

boolean