Craig Raw proposes Bitcoin descriptor format to ease multisig backup checks

Editorial illustration: Two transparent trays each hold three brass keys, with channels leading toward a pair of matching gold hexagonal emblems at the center.

In brief

  • Craig Raw posted a draft descriptor backup format to the Bitcoin Development Mailing List on Dec. 1.
  • Apostrophe and h notation give the same wallet different BIP 380 checksums.
  • Normalization produced a single checksum, jecfc8v2, in Raw's one 2-of-3 test vector.
  • Matching checksums don't prove key control, a complete backup or full equivalence.

Same wallet, different checksum

Output descriptors hold the instructions wallet software needs to build Bitcoin addresses and determine how funds can be spent. A two-of-three multisig descriptor, for example, lists three public keys (or instructions for deriving them) along with a rule that any two corresponding signing keys can authorize a transaction. During recovery, cosigners can compare descriptors to check whether their backups contain the same wallet instructions.

That's where things get messy.

Under BIP 380, descriptors carry an eight-character checksum calculated from their text to help detect errors. Wallet apps can write the same key derivation step with either an apostrophe or the letter h, but the checksum treats them as different characters. So two valid descriptors can generate identical addresses and spending rules while carrying different checksums.

What Raw's test vectors show

Raw's published test vectors walk through one two-of-three multisig wallet written two ways. The apostrophe version produced checksum xmwawk45. The h version produced tj77jlvt. The two descriptors also listed the same three key expressions in different orders, yet both produced identical Bitcoin scripts because their sortedmulti() construction sorts the derived public keys when generating each script.

Raw's format replaces apostrophes with h and orders the normalized key expressions by their text. Applied to the example, it yielded identical descriptor strings with the same checksum, jecfc8v2 (no key derivation required, and the wallet's underlying scripts didn't change). It's one specific test vector from an unnumbered draft, not an adopted BIP.

Limits on what a match proves

Wallet apps that adopt the proposal could compare normalized descriptors during recovery, removing formatting differences that might otherwise raise questions about whether individual backups match.

The comparison covers descriptor text only, though. Matching checksums alone wouldn't establish that two descriptors are identical, that cosigners control the needed private keys, or that their backups contain everything required to recover funds. The format also doesn't remove every difference between descriptors that produce equivalent scripts.

For multisig users, it's a narrower fix than the headline problem suggests: a cleaner way to check that two backups say the same thing, and not much more.

Frequently asked questions

Why can two backups of the same Bitcoin multisig wallet show different checksums?

Under BIP 380, descriptors carry an eight-character checksum calculated from their text. Wallet apps can write the same key derivation step with an apostrophe or the letter h, and the checksum treats those as different characters. So two valid descriptors can produce identical addresses and spending rules but carry different checksums.

What does Craig Raw's proposed descriptor format change?

Raw's draft replaces apostrophes with h and orders the normalized key expressions by their text. In his two-of-three test vector, that produced identical descriptor strings with the same checksum, jecfc8v2, without key derivation and without changing the wallet's underlying scripts.

Does a matching descriptor checksum prove a multisig backup is complete?

No. The comparison covers descriptor text only. Matching checksums alone wouldn't establish that cosigners control the needed private keys or that their backups contain everything required to recover funds, and the format doesn't remove every difference between descriptors that produce equivalent scripts.