Brifing

Bitcoin PIPEs v2: Witness Encryption and Covenant Emulation

Exploring Misha Komarov's cryptographic approach to Bitcoin soft-forks.

Stephan Livera Podcast2 min

1Introduction to Bitcoin PIPEs v2

Misha Komarov introduces Bitcoin PIPEs v2, a Witness Encryption design that locks a signing key under an NP statement. This allows a valid zero-knowledge proof to decrypt the key and produce an ordinary Schnorr spend. The Bitcoin L1 only checks a normal signature, avoiding the need for consensus changes.

2Comparison with PIPEs v1

PIPEs v1 used Functional Encryption for richer post-covenants, while PIPEs v2 employs Witness Encryption for binary pre-covenants. This shift reduces ciphertext sizes from ~300 TB toward single-digit terabytes, making the approach more practical for implementation.

3Ciphertext Size Trade-offs

The design focuses on reducing ciphertext sizes significantly. This reduction is crucial for practical applications, as it lowers storage and bandwidth requirements, making the system more efficient and scalable.

4DKG and 1-of-n Setup Assumptions

The Distributed Key Generation (DKG) and 1-of-n setup assumptions are critical for the security and functionality of PIPEs v2. These setups ensure that the system remains non-custodial and secure, even in shared-pool use cases.

5Non-Custodial Vault Use Cases

PIPEs v2 enables non-custodial vaults, allowing users to secure their Bitcoin without relying on third parties. This is particularly useful for shared-pool lending scenarios, where trust and security are paramount.

6Contrast with Cosigner Models

The approach contrasts with cosigner models like Sigbash, which rely on multiple parties to authorize transactions. PIPEs v2 offers a more streamlined and secure method by leveraging cryptographic proofs.

7Shielded Bitcoin Design

Allocinit’s Shielded Bitcoin design differs from Shielded CSV’s client-side validation approach. It focuses on enhancing privacy and security through advanced cryptographic techniques, ensuring robust protection for users.

8Security Challenges and Code Roadmap

The design faces open cryptanalysis challenges, but a clear path toward implementable code exists. Addressing these challenges is crucial for the successful deployment and adoption of PIPEs v2 in the Bitcoin ecosystem.

Original article: Stephan Livera Podcast — Bitcoin PIPEs v2: Witness Encryption and Covenant Emulation