Bitcoin PIPEs v2

Feb 12 - Jul 14, 2026

  • Bitcoin PIPEs version 2 (v2) represents a significant advancement in the application of cryptographic principles to enforce spending conditions on the Bitcoin blockchain without altering its consensus rules.

Utilizing witness encryption, PIPEs v2 ensures that a valid Schnorr signature can only be generated under specific conditions, thereby embedding transaction policies directly into the cryptography. This method allows for a more expressive and secure enforcement of policies directly on-chain. By employing witness encryption, the setup phase involves generating a Bitcoin key pair with the private key encrypted under a predefined condition. If this condition is met, evidenced by a valid witness, the private key is decrypted and used to sign transactions. This shift from blockchain-based enforcement to cryptographic realms allows for non-interactive, conditional signatures that do not necessitate new opcodes or complex protocols like garbled circuits and zk-proofs.

The innovative approach extends to enforcing binary covenants, which are straightforward yes/no conditions controlling the release of the signing key. This could be particularly effective in scenarios such as Bitcoin vaults, ensuring funds are only accessed when specified conditions are satisfied, thereby aligning well with practical needs within the ecosystem. Despite these advancements, there are computational challenges associated with implementing witness encryption based on arithmetic affine determinant programs (AADPs), such as ciphertext size and computation costs. Nevertheless, the potential for economic viability looks promising, especially with advancements in parallelization and cost-effective batching techniques.

Further exploration into the integration of musig2 signatures in transaction security highlights another layer of sophistication in covenant-like setups. A schematic involving a counterparty operator and a 3-3 musig2 signature requirement demonstrates a robust framework for transaction security. This arrangement necessitates approvals from multiple parties before any transaction can proceed, thus distributing control and enhancing security against unauthorized access and potential theft. The discussion also touches on the terminology of "covenants" within this context, suggesting a broader interpretation where operational constraints play a pivotal role in transaction control.

Additionally, the conversation around Function Encryption (FE)-based PIPEs for emulating covenants cryptographically points to a flexible yet secure framework capable of handling complex transaction pre-conditions through zero-knowledge virtual machines (zkVM) or LLVM (zkLLVM). This indicates a move towards more granular control over transactions within Bitcoin's scripting limitations, potentially making certain Bitcoin Improvement Proposals (BIPs) obsolete by simplifying the landscape.

In conclusion, the discussions encapsulate a deep dive into the technical nuances and potential innovations within Bitcoin’s transaction validation mechanisms. By leveraging cryptographic assurances and exploring novel applications of existing features, these advancements open up possibilities for more sophisticated and secure authorization methods in cryptocurrency transactions. This not only underscores the adaptability of Bitcoin's existing framework but also encourages further research and experimentation in enhancing flexibility and security.

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