THAMER
Sovereign Bitcoin Wallet

WALLET AI BITCOIN

Your Bitcoin Wallet. Your Keys. Your Engine.

Self-hosted Bitcoin software built for developers, applications, and AI agents.

CREATE WALLET

Bitcoin Hardware Wallet PSBT Signing: Offline Authorization and Security Checks

permalink THAMER
#bitcoin#hardware-wallet#offline-signing#psbt#security

A hardware wallet can keep private keys off an internet-connected computer while allowing that computer to construct and broadcast Bitcoin transactions. PSBT is a common exchange format between the host and the signing device. The critical security property is not the file format alone: it is the signer independently checking what it authorizes.

Separate construction, authorization and broadcast

An online coordinator discovers UTXOs, selects inputs, estimates fees and builds a PSBT. The hardware signer receives the PSBT and examines transaction details. After authorization, the signer returns a PSBT with signatures or finalization data. The host can then finalize and broadcast the transaction.

This separation reduces exposure of private keys, but a compromised host can still propose a malicious transaction. The device's own trusted display and policy checks matter.

What the signer must verify

  • Network and wallet identity: avoid signing on the wrong chain or for an unexpected wallet.
  • Input ownership and amounts: use reliable UTXO information to avoid fee deception.
  • Recipient addresses and amounts: inspect on the signing device, not only on the computer screen.
  • Change outputs: identify change using the wallet's authorized descriptors or derivation policy.
  • Total fee and effective feerate: reject unreasonable spending costs.
  • Script policy and sighash: confirm that the requested signatures match the intended authorization.

A PSBT can contain witness_utxo, non_witness_utxo, derivation paths and scripts. Which fields are necessary depends on script type and signer implementation. Do not assume every signer supports every PSBT version or Taproot feature.

Why air-gapped does not mean risk-free

An air-gapped signer transfers data by QR code, microSD or another offline channel. This can limit direct network attacks, but malicious PSBT content, deceptive outputs, firmware compromise, physical theft and recovery-seed exposure remain risks. The transport medium does not replace transaction verification.

Operational guidance

Test the complete restore and signing process with small amounts. Keep recovery material separate from the signing device, verify firmware provenance, and avoid publishing PSBTs containing unnecessary wallet metadata. For multisig, confirm that the signer knows the expected policy and cosigner keys.

Primary references

BIP174 — PSBT: https://github.com/bitcoin/bips/blob/master/bip-0174.mediawiki
BIP370 — PSBT v2: https://github.com/bitcoin/bips/blob/master/bip-0370.mediawiki
BIP371 — Taproot PSBT fields: https://github.com/bitcoin/bips/blob/master/bip-0371.mediawiki

Questions & Answers

Explore all questions →

Latest from the Lab

THAMER illustrated developer portrait and signature

ABOUT THE DEVELOPER

Independent Software Developer specializing in Bitcoin Script, Golang, and AI Agents.

Software engineering · Independent research · Open-source projects