BIP352 private key formats

Posted by junderw

Oct 25, 2025/00:43 UTC

In the exploration of enhancing support for Bitcoin payment solutions such as BTCPayServer with Schnorr Protocol (SP) compatibility, a significant technical discussion emerges around the integration methodology. The primary challenge lies in the effective encoding of a combination of scan private keys and spend public keys to facilitate seamless transactions, a necessity given the protocol's architecture and operational requirements. This aspect is crucial for enabling functionalities like BTCPayServer, which traditionally relies on extended public keys (xpubs), to accept SP-based transactions.

The discourse suggests an innovative approach towards defining a string format that can encapsulate various key combinations essential for SP operations. These combinations include the scan public plus spend master public key (B_scan + B_m), primarily defined in BIP352, alongside two additional configurations: the 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 executing spending operations and generating new SP addresses. Such a structured format aims to streamline the process, making it more intuitive and efficient for users and developers alike.

To accommodate these changes within the existing infrastructure, a modification of the Human-Readable Part (HRP) of addresses is proposed. Specifically, it involves altering the HRP to spscan and tspscan for delegated scanning addresses and to sppriv and tsppriv for all private key-related operations. This adjustment not only aids in differentiating between the types of operations and keys involved but also enhances the overall security and functionality of SP transactions within the cryptocurrency ecosystem.

This dialogue underscores the ongoing efforts and considerations within the developer community to refine and adapt cryptocurrency protocols and systems for broader application and usability. It reflects a proactive stance towards addressing the complexities and challenges inherent in integrating advanced cryptographic mechanisms into practical, user-oriented solutions like payment servers.

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