Kit
Type aliases

SignableMessage

SignableMessage = Readonly<{ content: Uint8Array; signatures: SignatureDictionary; }>

Defines a message that needs signing and its current set of signatures if any.

This interface allows MessageModifyingSigners to decide on whether or not they should modify the provided message depending on whether or not signatures already exist for such message.

It also helps create a more consistent API by providing a structure analogous to transactions which also keep track of their SignatureDictionary.

Example

import { createSignableMessage } from '@solana/signers';
 
const message = createSignableMessage(new Uint8Array([1, 2, 3]));
message.content; // The content of the message as bytes.
message.signatures; // The current set of signatures for this message.

See

createSignableMessage

On this page