Hardware Wallet
A hardware wallet is a physical device that stores private keys offline, protecting cryptocurrency from remote attacks and malware.
Key Takeaways
- A hardware wallet is a dedicated physical device that generates and stores private keys inside a tamper-resistant chip, ensuring keys never touch an internet-connected computer. Transaction signing happens entirely on the device.
- Form factors range from USB-connected devices to Bluetooth-enabled signers and fully air-gapped devices that communicate via QR codes or microSD cards, each offering different tradeoffs between convenience and cold storage isolation.
- Hardware wallets are the foundation of individual self-custody and can be combined into multisig setups for stronger security, but they require careful seed phrase management and supply chain awareness.
What Is a Hardware Wallet?
A hardware wallet is a purpose-built physical device that generates, stores, and uses cryptocurrency private keys in an offline, tamper-resistant environment. Unlike hot wallets (which store keys on internet-connected devices) or exchange custody (which delegates key control to a third party), a hardware wallet ensures that private keys never leave the device. Transaction signing occurs on-chip, and only the completed digital signature is exported.
Hardware wallets are the most common form of cold storage, though the terms are not synonymous. Cold storage refers to any offline key-storage method, including paper wallets or air-gapped computers. A hardware wallet is a dedicated device engineered specifically for this purpose, with a secure element chip designed to resist physical tampering and side-channel attacks.
The core principle is simple: the most dangerous moment for a private key is when it exists in memory on a general-purpose computer. Hardware wallets eliminate this risk entirely by performing all cryptographic operations inside an isolated chip that has no direct network access.
How It Works
The hardware wallet signing flow separates the online (networked) and offline (device) environments into distinct roles:
- Transaction construction: a companion application on a host computer or phone (such as Sparrow, Electrum, or a manufacturer's app) builds an unsigned transaction. For Bitcoin, this is encoded as a PSBT (Partially Signed Bitcoin Transaction) per BIP-174.
- Transfer to device: the unsigned transaction is sent to the hardware wallet via USB, QR code, Bluetooth, NFC, or microSD card, depending on the device.
- On-device review: the device parses the transaction and displays recipient addresses, amounts, and fees on its trusted screen. The user physically confirms by pressing a button or tapping the screen.
- Signing: the secure element performs the ECDSA or Schnorr signature computation internally. The private key never leaves the chip.
- Broadcast: the signed transaction exits through the same transport channel. The host application finalizes and broadcasts it to the network.
This architecture means even a fully compromised host computer cannot steal funds. An attacker who controls the host can attempt to change the destination address, but the user verifies the transaction details on the device's trusted display before signing.
Secure Element Architecture
The secure element is the core of a hardware wallet's security. It is a tamper-resistant microprocessor certified under the Common Criteria framework at an Evaluation Assurance Level (EAL). The chip stores private keys in physically and logically isolated memory and performs all cryptographic operations internally. Attempts to probe, decap, or voltage-glitch the chip trigger protective countermeasures.
Common secure element chips include the STMicroelectronics ST33K1M5 (EAL6+, used in Ledger devices), the Infineon OPTIGA Trust M v3 (EAL6+, used in Trezor Safe 3 and Safe 5), and the Microchip ATECC608B (used in Coldcard). The standard design pairs a secure element with a general-purpose microcontroller (MCU): the SE handles key storage and signing, while the MCU manages the user interface, display, and communication.
PSBT: The Air-Gap Protocol
BIP-174 defines PSBT, a standardized format that enables hardware wallets to sign transactions without direct network access. A PSBT encapsulates all inputs, outputs, scripts, and derivation paths while leaving signature fields blank. The standard defines distinct roles:
# PSBT workflow for hardware wallet signing
# 1. Creator: build empty PSBT (wallet software)
bitcoin-cli walletcreatefundedpsbt '[]' '[{"bc1q...": 0.5}]'
# 2. Updater: add UTXO data, scripts, derivation paths
bitcoin-cli walletprocesspsbt "cHNidP8BAH..."
# 3. Transfer PSBT to hardware wallet (USB, QR, microSD)
# 4. Signer: device signs inside secure element
# 5. Finalizer: assemble scriptSig/witness
bitcoin-cli finalizepsbt "cHNidP8BAH..."
# 6. Extractor: broadcast the raw transaction
bitcoin-cli sendrawtransaction "0200000001..."For air-gapped devices that use QR codes, the PSBT is encoded using the UR (Uniform Resources) format and split across animated QR frames. The device's camera scans the frames, reconstructs the PSBT, signs it, and displays a new QR code containing the signed result.
Form Factors
Hardware wallets come in several form factors, each with distinct connectivity and security tradeoffs:
USB-Connected
Devices like the Ledger Nano S Plus, Trezor Safe 3/5, and BitBox02 connect to a host computer via USB-C. This is the simplest setup with the lowest latency. The USB data channel is a potential attack surface, but it is mediated by device firmware that restricts communication to transaction data and device commands.
Bluetooth-Enabled
Some devices add Bluetooth Low Energy for pairing with mobile companion apps. The Ledger Nano X, Trezor Safe 7, and BitBox02 Nova support wireless connectivity. Bluetooth extends convenience for mobile signing but introduces an additional wireless protocol surface. The Bluetooth channel carries only encrypted transaction data, not raw key material.
Air-Gapped (QR Code)
Devices like the Keystone 3 Pro, Foundation Passport, Blockstream Jade Plus, and the DIY SeedSigner use cameras to scan QR-encoded PSBTs. No data cable, wireless radio, or removable media connects the device to any other system. This provides the strongest isolation: the only data entering or leaving the device passes through a human-visible optical channel. For a deeper look at air-gapped signing, see air-gapped signing.
Air-Gapped (MicroSD)
Coldcard pioneered microSD-based PSBT transfer: the user writes the unsigned PSBT to a card, physically inserts it into the device, signs, and retrieves the signed file. This avoids any electronic connection but requires trusting the SD card as a transport medium.
Hardware Wallets vs. MPC Wallets vs. Multisig
Three major approaches to securing private keys compete in the market, each suited to different use cases:
| Approach | Key Structure | Recovery | Best For |
|---|---|---|---|
| Hardware wallet | Single key on a dedicated device | Seed phrase (12/24 words) | Individual self-custody, long-term storage |
| MPC wallet | Key shares distributed across parties; full key never exists | Social recovery, biometric, encrypted backups | Institutions, active trading, team operations |
| Multisig | Multiple independent keys (e.g., 2-of-3) | Each key has its own seed phrase | High-value vaulting, eliminating single-vendor risk |
Hardware wallets offer the simplest mental model: one device, one seed phrase, one point of responsibility. MPC wallets eliminate the single seed phrase as a vulnerability but rely on trust in the threshold infrastructure. Multisig distributes trust across multiple hardware wallets from different manufacturers, at the cost of higher transaction fees and operational complexity. For a deeper comparison, see the research on MPC vs. multisig custody.
Many security-conscious users combine approaches: a multisig setup using hardware wallets from two or three different manufacturers, each stored in a separate location, provides both hardware isolation and vendor diversity.
Why It Matters
Hardware wallets are the cornerstone of self-custody for individuals holding significant cryptocurrency balances. They solve the fundamental tension in digital asset security: the keys that control your funds must be used to sign transactions, but every moment those keys exist on a networked device, they are exposed to malware, phishing, and remote exploitation.
For Bitcoin Layer 2 systems like Spark, hardware wallets serve as the trust anchor for on-chain keys. Even when day-to-day transactions happen off-chain for speed and lower fees, the underlying Bitcoin that secures those balances can be protected by a hardware wallet. This layered approach combines the convenience of instant off-chain payments with the security of hardware-isolated key storage.
Use Cases
- Long-term savings: storing Bitcoin and other assets that are rarely moved, where the inconvenience of physical signing is a feature rather than a limitation
- Multisig key holder: serving as one key in a 2-of-3 or 3-of-5 multisig arrangement for business treasuries or family vaults
- Signing device for watch-only wallets: pairing with a watch-only wallet that monitors balances and constructs transactions, while the hardware wallet provides signatures on demand
- Offline seed generation: using the device's hardware random number generator (optionally combined with user-supplied dice entropy) to create seed phrases in a controlled environment
- DeFi and smart contract interaction: newer multi-chain devices integrate with browser wallets to sign smart contract transactions while keeping keys offline
Risks and Considerations
Supply Chain Attacks
Counterfeit or tampered devices intercepted during shipping are a documented threat. Security researchers have identified fake hardware wallets with physically replaced internal chips and removed firmware verification. In 2023, an attacker compromised the Ledger Connect Kit NPM package by phishing publishing credentials from a former employee, injecting malicious code into DeFi frontends that interacted with Ledger devices. The attack resulted in approximately $600,000 in losses, highlighting that the software ecosystem around a hardware wallet can be targeted even when the device itself is secure.
Mitigations include buying directly from the manufacturer, verifying device attestation on first setup, checking tamper-evident packaging, and favoring devices with reproducible firmware builds.
Physical Extraction and Side-Channel Attacks
An attacker with physical access to the device may attempt voltage glitching, power analysis, or electromagnetic probing to extract secrets. In 2020, Kraken Security Labs demonstrated seed extraction from Trezor devices with approximately 15 minutes of physical access using voltage glitching on the STM32 processor. Secure elements with EAL5+ and EAL6+ certification are specifically tested against these lab-grade attacks, which is why modern devices pair a certified SE with the general-purpose MCU.
Seed Phrase as a Single Point of Compromise
A hardware wallet's seed phrase is a complete backup of all private keys the device can generate. Anyone who obtains those 12 or 24 words can reconstruct every key without needing the physical device. This makes seed storage and backup the most critical aspect of hardware wallet security. Adding a BIP-39 passphrase provides an additional layer: even if the seed words are exposed, the passphrase is needed to derive the actual keys.
Firmware Vulnerabilities
Open-source firmware enables community auditing but does not guarantee the absence of bugs. In July 2026, a compile-time error in Coldcard firmware (present since version 4.0.0 in March 2021) was discovered to have silently bypassed the hardware random number generator, significantly reducing the entropy of generated seeds. The vulnerability, which went undetected for over five years despite open-source code, underscores the importance of user-supplied entropy (dice rolls) during seed generation and regular firmware updates.
Usability Tradeoffs
Hardware wallets introduce friction by design: every transaction requires physical device interaction. This makes them poorly suited for frequent trading or automated operations. The device can also be lost, damaged, or stolen, making robust backup procedures (seed phrase stored in a separate, secure location) essential. For users who need both security and frequent transaction signing, a tiered approach works well: a hardware wallet for long-term savings and a hot wallet or Layer 2 solution for daily spending.
This glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.