Skip to main content

MessageSigner

Properties

keyType

keyType: KeyType

The type of key used for signing.


publicKeyB64

publicKeyB64: string

The public key in base64 format.

Methods

sign()

sign(messageB64): Promise<string>

Signs a message using the private key.

Parameters

messageB64

string

The message to sign, encoded in base64.

Returns

Promise<string>

A promise that resolves to the signature in base64 format.