Skip to content

verifyOpening()

SIP Protocol API Reference v0.7.2


SIP Protocol API Reference / verifyOpening

verifyOpening(commitment, value, blinding): boolean

Defined in: @sip-protocol/sdk/dist/index-CzWPI6Le.d.ts:3647

Verify that a commitment opens to a specific value

Recomputes C’ = vG + rH and checks if C’ == C

`0x${string}`

The commitment point to verify

bigint

The claimed value

`0x${string}`

The blinding factor used

boolean

true if the commitment opens correctly