Bitcoin Wallet Recovery May Improve with Standard Backup Format Proposal

iconCryptoSlate
Share
AI summary iconSummary
Bitcoin breaking news: Developer Craig Raw has proposed a standard backup format to streamline multisignature wallet recovery. The plan targets inconsistent descriptors caused by formatting issues, which can hinder recovery verification. Test vectors show normalization rules could align checksums, though identical ones won’t ensure full key agreement. Bitcoin news: The proposal is still a draft as of Dec. 3, pending wallet developer adoption.

Bitcoin developer Craig Raw has proposed a standard backup format that could simplify recovery of wallets protected by multiple signing keys without changing network rules. Raw described the problem in a Dec. 1 message to the Bitcoin Development Mailing List. Differences in formatting can make backups with identical wallet instructions appear inconsistent during recovery.

Output descriptors tell wallet software how to generate Bitcoin addresses and establish the conditions for spending funds. A two-of-three multisig descriptor, for example, can contain three public keys or instructions for deriving those keys. The spending condition requires any two corresponding signing keys to approve a transaction. Cosigners can check descriptors against one another to verify that backups describe the same wallet. However, variations in how applications express the instructions can make that comparison harder.

BIP 380 specifies an eight-character checksum derived from a descriptor's text to help identify errors. Applications may represent the same key derivation step with either an apostrophe or the letter h. However, the checksum calculation distinguishes between those characters. Valid descriptors can therefore define identical addresses and spending conditions but have different checksums.

Raw proposes shared formatting rules for applications to apply before descriptors are displayed, exported or compared. Raw's published test vectors show different checksums for two descriptors describing the same two-of-three multisig wallet. The descriptor containing apostrophes has the checksum xmwawk45. The version containing h has the checksum tj77jlvt. The same three key expressions also appear in different sequences in the two descriptors. Both descriptors nevertheless generate identical Bitcoin scripts because sortedmulti() sorts the derived public keys for each script.

Raw's format would substitute h for apostrophes and sort the normalized key expressions by text. The resulting descriptor strings would match and share the checksum jecfc8v2. The normalization would require neither key derivation nor changes to the underlying wallet scripts. Applications using the rules could compare normalized descriptors during recovery to remove formatting discrepancies that might otherwise cast doubt on whether backups agree.

However, identical checksums would not establish that the descriptors themselves match. Matching checksums would also not prove that cosigners possess the required private keys or that backups include everything necessary to recover funds. The format would not reconcile every pair of descriptors that generates equivalent scripts. One descriptor might provide a public key explicitly, while another derives that same key from an extended public key.

The proposal remained a draft without an assigned number as of Dec. 3. Implementation would depend on wallet developers adopting the formatting rules. Applications would still accept valid descriptors expressed in existing formats.

Disclaimer: The information on this page may have been obtained from third parties and does not necessarily reflect the views or opinions of KuCoin. This content is provided for general informational purposes only, without any representation or warranty of any kind, nor shall it be construed as financial or investment advice. KuCoin shall not be liable for any errors or omissions, or for any outcomes resulting from the use of this information. Investments in digital assets can be risky. Please carefully evaluate the risks of a product and your risk tolerance based on your own financial circumstances. For more information, please refer to our Terms of Use and Risk Disclosure.