Skip to content

subtractCommitmentsNEAR()

SIP Protocol API Reference v0.7.4


SIP Protocol API Reference / subtractCommitmentsNEAR

subtractCommitmentsNEAR(c1, c2): NEARCommitmentPoint

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:18464

Subtract two commitments homomorphically (ed25519)

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

`0x${string}`

First commitment point

`0x${string}`

Second commitment point (to subtract)

NEARCommitmentPoint

Difference of commitments