Skip to content

~~Function: createCommitment()~~

SIP Protocol API Reference v0.7.0


SIP Protocol API Reference / createCommitment

createCommitment(value, blindingFactor?): Commitment

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

Create a Pedersen commitment to a value

bigint

The value to commit to

Uint8Array<ArrayBufferLike>

Optional blinding factor (random if not provided)

Commitment

Commitment object (legacy format)

Use commit() from ’./commitment’ for new code. This wrapper maintains backward compatibility.