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
Name | Type | Description |
---|---|---|
body | ICallback | The body of the callback. |
privateKey | string | The private key used for generating the signature. |
Returns
string
The generated callback signature.
Defined in
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
Name | Type | Description |
---|---|---|
options | ISignatureParams | The options object containing the required parameters. |
Returns
string
The generated signature for the payment transaction.