Skip to content

verifyOpening()

SIP Protocol API Reference v0.7.0


SIP Protocol API Reference / verifyOpening

verifyOpening(commitment, value, blinding): boolean

Defined in: @sip-protocol/sdk/dist/index-BYZbDjal.d.ts:3584

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