Skip to content

schnorrSign()

SIP Protocol API Reference v0.7.0


SIP Protocol API Reference / schnorrSign

schnorrSign(message, privateKey, auxRand?): Uint8Array

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

Sign a message using BIP-340 Schnorr signatures

Uint8Array

32-byte message to sign

Uint8Array

32-byte private key

Uint8Array<ArrayBufferLike>

Optional 32-byte auxiliary random data (for deterministic signatures if omitted)

Uint8Array

64-byte Schnorr signature

If inputs are invalid