~~Function: createCommitment()~~
SIP Protocol API Reference v0.7.0
SIP Protocol API Reference / createCommitment
Function: createCommitment()
Section titled “Function: createCommitment()”createCommitment(
value,blindingFactor?):Commitment
Defined in: @sip-protocol/sdk/dist/index-BYZbDjal.d.ts:3318
Create a Pedersen commitment to a value
Parameters
Section titled “Parameters”bigint
The value to commit to
blindingFactor?
Section titled “blindingFactor?”Uint8Array<ArrayBufferLike>
Optional blinding factor (random if not provided)
Returns
Section titled “Returns”Commitment object (legacy format)
Deprecated
Section titled “Deprecated”Use commit() from ’./commitment’ for new code.
This wrapper maintains backward compatibility.