Blockchain/Level VIII · The memecoin age/8.2 Solana/Lesson 2
Wallets and signing
The signature that spends, the approval that outlives it, and the risk of signing what you cannot read
MaterialsA computer with a web browserA Solana block explorer (e.g., Solscan)A hardware wallet or mobile device with Phantom/Solflare installed
Wonder
- Why does a Solana transaction carry an expiration date?
- What exactly is being approved when a user signs a versioned transaction?
- How can one transaction reference many more accounts than it lists in full?
Explore
- Solana keys are ed25519 key pairs. Most wallets derive these from a BIP39 seed phrase using the derivation path m/44’/501’/0’/0’. This standard allows users to recover their entire identity across different compatible software, provided they retain the original twelve or twenty-four word mnemonic. The private key remains local; the public key serves on-chain as the account’s address.
- A transaction lists specific instructions and the accounts those instructions touch. Crucially, it includes a recent blockhash. This hash acts as an expiration mechanism: if the transaction is not processed within about 150 blocks, roughly 60 to 90 seconds, the blockhash becomes stale and the network rejects the transaction. Durable nonces allow users to sign transactions that remain valid for longer periods by using a value stored in a special nonce account in place of a recent blockhash.
- Signing approves every instruction contained in the transaction. A malicious payload can transfer token accounts or change their authority settings without explicit user awareness of those specific sub-instructions. Wallets like Phantom, Solflare, and Backpack simulate these transactions to provide human-readable previews. However, users can still approve harmful instructions through ‘blind signing,’ where the raw data is accepted without verification of its intent.
- Versioned transactions introduce address lookup tables, allowing a single transaction to reference many accounts by index rather than listing every full address. This optimization reduces the byte size of complex operations that touch numerous token mints or positions. The trade-off is complexity; understanding the resolved addresses requires decoding the table indices against the current state of the referenced account.
- Hardware wallets provide an isolated environment for signing, interfacing via USB or QR codes to protect keys from host system malware. However, security depends on the integrity of the host application that constructs and displays the transaction data. If the host is compromised, it can present malicious details while the user signs what appears legitimate. Verifying all parameters directly on the hardware device’s screen mitigates this specific attack vector.
- To inspect a transaction’s structure, open a Solana block explorer and select any recent transaction involving a multi-step operation. Expand the ‘Instructions’ section to view each individual program call. Then, examine the ‘Accounts’ tab to see which accounts were read from or written to by each instruction. Cross-reference these with the raw data to understand how the simulation preview maps to the actual state changes.
Key facts
- Solana keys are ed25519 pairs derived from BIP39 seeds at path m/44’/501’/0’/0’.
- Transactions include a recent blockhash that expires them after about 150 blocks (60-90 seconds).
- Signing approves all instructions, enabling blind signing of malicious payloads if previews are ignored.
- Versioned transactions use address lookup tables to reference multiple accounts compactly.
- Hardware wallets isolate keys but rely on host applications for transaction data display.
- Wallets simulate transactions to show human-readable previews before requesting a signature.
Exercise nine, six, three, one
9CollectList 9 distinct Solana wallet interfaces or signing methods. Note their primary security model (software, hardware, MPC) and one specific feature they offer for transaction inspection.
6ClusterGroup the 9 into 6 categories based on how much transaction data is visible to the user before signing: full raw data, simulated preview only, hardware screen verification, or opaque execution.
3DistillReduce the 6 groups to 3 core trade-offs between usability and security visibility in Solana wallets.
1CrystallizeWrite 1 sentence on what a signature actually authorizes on Solana compared to other chains.
Fact check
Dates, figures and claims checked against the published sources listed below.
- Solana Documentation: Transactions and Durable Nonces
- Phantom Developer Documentation: Signing and Simulation
- BIP39: Mnemonic Code for Generating Deterministic Keys
- Solana Documentation: Versioned Transactions and Address Lookup Tables