Skip to content

subtractCommitments()

SIP Protocol API Reference v0.7.0


SIP Protocol API Reference / subtractCommitments

subtractCommitments(c1, c2): CommitmentPoint

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

Subtract two commitments homomorphically

C1 - C2 = (v1-v2)*G + (r1-r2)*H

`0x${string}`

First commitment point

`0x${string}`

Second commitment point (to subtract)

CommitmentPoint

Difference of commitments

If commitments are invalid