Skip to Content
Packages@tuwaio/siwx-solanaType AliasesSolanaSiwxMessageFormat

SolanaSiwxMessageFormat

SolanaSiwxMessageFormat = SolanaMessageFormat

Defined in: signer.ts:28 

How createSolanaSiwxSigner has the wallet sign the message:

  • 'auto' (default): the UTF-8 bytes of the message, or its version 1 off-chain message when the account supports solana:signOffchainMessage but not solana:signMessage (as hardware wallet accounts may), or when the target has no other way to sign;
  • 'message': always the UTF-8 bytes (solana:signMessage and the fallbacks of SolanaSiwxSignerTarget);
  • 'offchainMessage': always the version 1 off-chain message (solana:signOffchainMessage, or a signOffchainMessage(message) method such as the one of useWallet() from @solana/wallet-adapter v3).

verifyEd25519 and @tuwaio/siwx-server accept both, so the format needs no server setting. The same type as SolanaMessageFormat of @tuwaio/orbit-solana.

Last updated on