[BIP Draft] Bitcoin Encrypted Backup

Sep 4 - Sep 4, 2025

  • At WizardSardine, the development team has been exploring an encryption scheme suitable for Liana wallet descriptors for a considerable period, spanning at least two years.

The quest for an appropriate scheme recently culminated with the discovery of Salvatore Ingala's publication on DelvingBitcoin, which proposed a clear and fitting scheme. Following this revelation, significant progress has been made towards its implementation. The efforts have led to the creation of draft implementations and a Bitcoin Improvement Proposal (BIP), now available for community feedback. The resources provided include a draft BIP accessible via GitHub, a Rust implementation coupled with a command-line interface found at this GitHub repository, and a simplistic graphical user interface leveraging the Rust implementation, available at another GitHub repository. Additionally, Salvatore Ingala's insightful post that inspired these developments can be read at DelvingBitcoin.

The draft BIP and its associated implementations have raised several open questions within the developer community, particularly regarding the cryptographic choices and methodologies employed. A key point of discussion revolves around the generation of deterministic nonces. The current approach relies on random nonce generation, but there's a proposition to adopt a deterministic method by hashing the concatenation of a fixed string, plaintext, and multiple keys. This potential shift raises concerns about its security implications. Another area of debate is the choice of cipher, where AES-GCM-256 has been selected without thorough justification, prompting inquiries into whether it is the optimal choice for this application or if alternative cryptographic constructions might offer superior suitability. Finally, the decision to encode all fields in big-endian byte order has been questioned, with a call for insights into whether other encoding strategies might be more appropriate.

This call for feedback, remarks, and reviews from the broader development community is a crucial step in refining the proposed encryption scheme for wallet descriptors, ensuring its robustness, security, and effectiveness in real-world applications.

Link to Raw Post
Bitcoin Logo

TLDR

Join Our Newsletter

We’ll email you summaries of the latest discussions from high signal bitcoin sources, like bitcoin-dev, lightning-dev, and Delving Bitcoin.

Explore all Products

ChatBTC imageBitcoin searchBitcoin TranscriptsSaving SatoshiDecoding BitcoinWarnet
Built with 🧡 by the Bitcoin Dev Project
View our public visitor count

We'd love to hear your feedback on this project.

Give Feedback