Skip to content

sign

sign(instance, payload, publicKey): Promise<Bytes>

Defined in: astrobase/src/ecdsa/ecdsa.ts:19

Sign a message with ECDSA using Keyring.

Instance

The Instance config.

Uint8Array

The buffer of the payload to sign.

Uint8Array

The buffer of the public key of the target identity to sign as.

Promise<Bytes>

The buffer of the signature in a Promise.

If the private key is unavailable (i.e. wrong or no keyring loaded).