addCommitments()
SIP Protocol API Reference v0.7.0
SIP Protocol API Reference / addCommitments
Function: addCommitments()
Section titled “Function: 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.
Parameters
Section titled “Parameters”`0x${string}`
First commitment point
`0x${string}`
Second commitment point
Returns
Section titled “Returns”Sum of commitments
Throws
Section titled “Throws”If commitments are invalid hex strings