verifyOpening()
SIP Protocol API Reference v0.7.0
SIP Protocol API Reference / verifyOpening
Function: verifyOpening()
Section titled “Function: 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
Parameters
Section titled “Parameters”commitment
Section titled “commitment”`0x${string}`
The commitment point to verify
bigint
The claimed value
blinding
Section titled “blinding”`0x${string}`
The blinding factor used
Returns
Section titled “Returns”boolean
true if the commitment opens correctly