Skip to content

subtractCommitmentsNEAR()

SIP Protocol API Reference v0.15.1


SIP Protocol API Reference / subtractCommitmentsNEAR

subtractCommitmentsNEAR(c1, c2): NEARCommitmentPoint

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:18800

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