An editorial collage of folded paper strips marked with dots and dashes, beside a Bitcoin binder clip against torn lime-green paper.
Image by CryptoSlate

Bitcoin wallet recovery could become easier without changing a single network rule

Craig Raw's proposal targets backup inconsistencies at the wallet software level without requiring a Bitcoin protocol upgrade.

Quick Take

  1. Bitcoin developer Craig Raw has proposed standardized wallet descriptors to simplify multisig backup verification and recovery.
  2. Identical wallet instructions can currently produce different checksums, creating unnecessary uncertainty during recovery.
  3. The proposal would eliminate certain formatting discrepancies, but matching checksums alone cannot guarantee successful wallet recovery.

Bitcoin developer Craig Raw has proposed a standardized backup format to reduce confusion when users recover wallets secured by multiple signing keys.

In a Dec. 1 post to the Bitcoin Development Mailing List, Raw identified an inconsistency that can make two backups containing identical wallet instructions appear different during recovery.

The problem stems from how wallet applications write output descriptors, which contain the instructions software needs to construct Bitcoin addresses and determine how funds can be spent.

For example, a two-of-three multisig wallet descriptor can specify three public keys or instructions for deriving them, alongside a spending rule requiring any two corresponding signing keys to authorize a transaction.

Cosigners can compare these descriptors during recovery to establish whether their backups contain the same wallet instructions.

However, differences in how wallet software writes those instructions can complicate verification.

Under BIP 380, descriptors carry an eight-character checksum calculated from their text to help detect errors. Wallet applications can use either an apostrophe or the letter h to represent the same type of key derivation step, but the checksum calculation treats them as different characters.

As a result, two valid descriptors can generate identical Bitcoin addresses and spending rules while carrying different checksums.

How the proposed standard simplifies wallet recovery

Raw's proposal addresses the inconsistency by establishing common formatting rules that wallet applications could apply before displaying, exporting, or comparing descriptors.

In his published test vectors, Raw demonstrated how two descriptors for the same two-of-three multisig wallet produced different checksums.

One descriptor used apostrophes and generated the checksum xmwawk45, while the other used the letter h and generated tj77jlvt. The descriptors also listed the same three key expressions in different orders.

Despite these differences, both produced identical Bitcoin scripts because their sortedmulti() construction sorts the derived public keys when generating each script.

Raw's proposed format replaces the apostrophes with h and arranges the normalized key expressions according to their text. Applying those rules produces identical descriptor strings with the same checksum, jecfc8v2, without requiring key derivation or changing the wallet's underlying scripts.

Two descriptor strings converge

In Craig Raw’s two-of-three multisig example, two ways of writing the same descriptor produce different checksums. His proposed format gives both copies identical text and a shared checksum.

The proposed format makes the two test strings match while preserving the scripts they produce.

This is a specific two-of-three test vector from an unnumbered draft. The comparison covers descriptor text and does not establish signing-key control, backup completeness or equivalence across structurally different descriptors.

Wallet applications adopting the proposal could therefore compare normalized descriptors during recovery, eliminating formatting differences that might otherwise raise questions about the consistency of individual backups.

However, matching checksums alone would not establish that two descriptors are identical, that cosigners control the necessary private keys or that their backups contain everything required to recover their funds.

The proposed format also does not eliminate every difference between descriptors that produce equivalent scripts. For instance, one descriptor could specify a public key directly while another derives the same key from an extended public key.

Related Reading

Why Bitcoin Core users need a fresh backup after first-time wallet encryption

As of Dec. 3, Raw's proposal remains an unnumbered draft. Its implementation would depend on wallet developers adopting the formatting rules, while applications would continue accepting valid descriptors written in existing formats.

Article context

Mentioned in this article

Related Asset Bitcoin #1 BTC $54,220.34 24-hour change: down 8.92% Loading price history… 24H Down 8.92% 7D Down 10.07% 30D Down 30.01%