Skip to content

addCommitments()

SIP Protocol API Reference v0.7.0


SIP Protocol API Reference / addCommitments

addCommitments(c1, c2): CommitmentPoint

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

Add two commitments homomorphically

C1 + C2 = (v1G + r1H) + (v2G + r2H) = (v1+v2)*G + (r1+r2)*H

Note: The blinding factors also add. If you need to verify the sum, you must also sum the blinding factors.

`0x${string}`

First commitment point

`0x${string}`

Second commitment point

CommitmentPoint

Sum of commitments

If commitments are invalid hex strings