Skip to main content

Class: Signature

The class used to generate a signature before creating a transaction.

Constructors

constructor

new Signature()

Methods

callbackSignature

Static callbackSignature(body, privateKey): string

Generates the callback signature using the provided body and private key.

Parameters

NameTypeDescription
bodyICallbackThe body of the callback.
privateKeystringThe private key used for generating the signature.

Returns

string

The generated callback signature.

Defined in

src/signature/signature.ts:42


generate

Static generate(options): string

Generates a signature for a payment transaction.

Throws

Throws an error if either the amount or channel is not provided.

Parameters

NameTypeDescription
optionsISignatureParamsThe options object containing the required parameters.

Returns

string

The generated signature for the payment transaction.

Defined in

src/signature/signature.ts:21