Skip to Content

SolanaMessageFormat

SolanaMessageFormat = SharedSolanaMessageFormat

Defined in: satellite-solana/src/utils/signerUtils.ts:25 

How createSolanaMessageSigner has the wallet sign:

  • 'auto' (default): the UTF-8 bytes of the message, or its version 1 off-chain message when the account lists solana:signOffchainMessage but not solana:signMessage (as hardware wallet accounts may), or when the wallet has no other way to sign;
  • 'message': always the UTF-8 bytes;
  • 'offchainMessage': always the version 1 off-chain message (solana:signOffchainMessage or a signOffchainMessage(message) method).

@tuwaio/siwx-solana and @tuwaio/siwx-server accept both for SIWX. The same type as SolanaMessageFormat of @tuwaio/orbit-solana.

Last updated on