BIP352 private key formats

Oct 25 - Dec 3, 2025

  • In the realm of Bitcoin payment solutions, a significant technical discourse is dedicated to enhancing support for BTCPayServer with Schnorr Protocol (SP) compatibility.

The challenge centers around the encoding of scan private keys and spend public keys, which is vital for executing seamless transactions within the SP's architectural framework. An innovative approach is proposed to create a string format that can encapsulate various key combinations crucial for SP operations. These include combinations outlined in BIP352, such as scan public plus spend master public key (B_scan + B_m), as well as configurations like scan private plus spend master public key (b_scan + B_m) for delegated scanning, and the scan private plus spend private key (b_scan + b_spend) for spending operations and generating new SP addresses. This structured format aims to simplify and make the process more intuitive for both users and developers, highlighting the community's efforts to refine cryptocurrency protocols for broader usability.

Further exploration into the intricacies of encoding for silent payment descriptors, as detailed in a transcript from the Bitcoin Core Dev Tech 2024 conference, suggests advancements to the existing framework. The enhancement involves a format that encompasses “self-contained” spending material for individual outputs by combining tweak with b_spend, derived from elements like label, b_scan, and a shared secret. This proposal addresses limitations where keys alone do not suffice for spending outputs without tweak material from the originating transaction. By proposing a self-contained methodology, the aim is to streamline transactions while bolstering security and privacy in cryptocurrency transactions.

The conversation also extends to the refinement of the Bitcoin Improvement Proposal (BIP) concerning wallet imports. It highlights the importance of including a block number or "birthday" for labels and per-tx data, which informs the wallet that it need not verify transactions prior to this block, thereby streamlining the restoration process. Encoding labels as an array at the end of transaction data could enable efficient organization and retrieval, simplifying the restoration process for users. This dialogue reflects a proactive engagement within the community to improve the protocol based on technical insights.

A notable development in the Bitcoin Improvement Proposals landscape is the establishment of a new BIP PR, marking a step forward in advancing Bitcoin's protocol. This PR invites community feedback, collaboration, and contribution, demonstrating a commitment to the evolution of Bitcoin. It serves as a platform for transparent examination, discussion, and improvement suggestions, embodying the open-source nature of Bitcoin and encouraging community engagement.

On the topic of output descriptors, a clear understanding of their roles and limitations is essential. Output descriptors describe outputs but require external data from scanned transactions to generate meaningful output, underscoring the need for precise definitions and comprehensive documentation. The discussion also covers the functionality and application of SP descriptors regarding the inclusion of private key information, suggesting an adaptation to allow encodings that encompass private key material for secure and efficient transmission.

Moreover, there's a push towards modifying Bitcoin transaction descriptor formats to aid in wallet recovery processes. The proposal suggests excluding complex UTXO and ECDH information deemed unnecessary for a descriptor, advocating for standardized output formats to prevent user confusion. The inclusion of birthday and maximum label hints is proposed to enhance scanner efficiency and user experience. Additionally, the impact of adding labels on transaction processing efficiency is analyzed, showing a significant increase in processing time and a decrease in transactions per second with the addition of labels, highlighting the computational cost associated with each additional label.

This comprehensive analysis underscores the ongoing efforts to optimize the Bitcoin network, focusing on improving security, privacy, and user experience through technical enhancements and community collaboration.

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