Overview
This guide shows you how to sign messages with your Solana wallet. The Python SDK signs messages using Ed25519 and returns a base58-encoded signature.Prerequisites
Basic Message Signing
Signing with a Password-Protected Wallet
- If your wallet was created without a password, omit the
passwordparameter. - If your wallet was created with a password, you must provide it for all signing operations.
password= also enables auto-recovery of the local key share in fresh processes — pair it with client.load_wallet(address) after restart.
Verifying a Signature
Verify signatures off-chain usingPyNaCl: