Blockchain/Level IV · Protocol depth/4.3 Custody and privacy/Lesson 2
Hardware wallets
The air gap, the secure element, and the keys that never leave the box
MaterialsA hardware wallet deviceA companion software wallet (e.g., Electrum or Sparrow)A USB cable or QR code scanner
Wonder
- How can a device sign a transaction without ever revealing the private key to the computer connected to it?
- What does a secure-element chip protect against, and what does open firmware let outsiders check?
- What happens when a hardware wallet is physically seized by an attacker with specialized equipment?
Explore
- Hardware wallets are dedicated devices that store private keys on isolated hardware, signing transactions without exposing the keys to internet-connected computers. The device displays the destination address on its own screen for verification before confirmation. This isolation prevents malware on a connected host from extracting secrets or altering transaction details. Early products include the Trezor (SatoshiLabs, 2014), Ledger Nano S (2016), and Coldcard (Coinkite, 2018).
- Designs diverge into secure-element chips and general-purpose microcontrollers. Secure-element chips resist physical extraction, but their internals are closed; general-purpose microcontrollers are fully inspectable but easier to attack physically. Several devices (for example Coldcard, BitBox02 and Trezor Safe) combine a secure element with open or source-available firmware. In 2020, Kraken Security Labs demonstrated extracting a Trezor seed via physical access to the device’s electronics. This trade-off defines current security postures: transparency versus tamper resistance.
- Many signing workflows use Partially Signed Bitcoin Transactions (PSBT). A companion software wallet constructs an unsigned transaction and transmits it to the hardware device via USB, NFC, or QR codes. The user verifies details on the device’s display and confirms. The signature is generated internally using secp256k1 ECDSA or Schnorr algorithms and returned. The private key never leaves the secure boundary.
- Air-gapped devices avoid a direct cable connection to the computer. Devices like the Coldcard sign via SD card, while others use QR codes to transfer transaction data. An SD card or QR code is still a data channel, so a compromised computer could alter the request; checking the details on the device’s own screen is what catches that. The physical separation between network exposure and key storage remains the core security model for long-term custody.
- Supply chain and database risks persist despite hardware isolation. Tampered devices from unofficial sellers may contain backdoors. In 2020, Ledger’s customer database leaked, fueling phishing attacks that targeted users with social engineering rather than cryptographic breaks. The 2023 debate over Ledger Recover highlighted tensions between convenience and non-custodial principles, because the optional service would back up encrypted shares of the seed with third-party companies.
- Hardware wallets serve as long-term storage for infrequent access, distinct from mobile or exchange wallets used for daily spending. Many users split funds this way: most on a hardware device, small amounts in a phone wallet. Self-custody also means no help desk can reverse a mistake or recover a stolen seed.
Key facts
- Trezor (2014) and the Ledger Nano S (2016) were among the first widely adopted hardware wallets; Coldcard followed in 2018.
- Kraken Security Labs extracted a Trezor seed via physical access in 2020, demonstrating risks to general-purpose microcontrollers.
- Ledger’s customer database leaked in 2020, enabling targeted phishing attacks against users.
- Air-gapped devices use SD cards or QR codes with PSBTs to sign transactions without direct data connections.
- Secure-element chips resist physical extraction but have closed internals; some devices pair them with open firmware.
- Hardware wallets require a companion software wallet for network interaction and transaction construction.
Exercise nine, six, three, one
9CollectList 9 hardware wallet models or manufacturers. Note their chip type (secure element vs. microcontroller) and primary connection method.
6ClusterGroup the 9 into 6 by security architecture: closed secure element, open firmware, air-gapped only, hybrid, or other design distinctions.
3DistillReduce the 6 to 3 core trade-offs between transparency, physical resistance, and convenience.
1CrystallizeWrite 1 sentence on what the air gap protects against and what it does not.
Fact check
Dates, figures and claims checked against the published sources listed below.
- Kraken Security Labs, Trezor seed-extraction research (January 2020)
- Ledger, 'Data Breach Disclosure' (2020)
- A. M. Antonopoulos & D. A. Harding, Mastering Bitcoin, 3rd ed. (2023), ch. 5
- SatoshiLabs, Trezor documentation
- Coinkite, Coldcard user manual