Stanford's Praxis Makes Witness Encryption Practical, Paving Way for Trust-Minimized Bitcoin Bridges

iconChainGPT
Share
AI summary iconSummary
Researchers from Stanford University and Byzantine Research have developed Praxis, a practical witness encryption scheme that could lower costs for trust-minimized Bitcoin applications like blockchain bridges. The system supports arbitrary NP statements and uses homomorphic encryption techniques to reduce ciphertext size by over ten orders of magnitude. Praxis enables fast encryption and decryption on a standard laptop, with potential use cases including expressive covenants and BitVM-style rollups. The system relies on a Groth16 trusted setup and needs further peer review and tooling integration.
Headline: Stanford’s “Praxis” could make witness encryption practical — and open new doors for Bitcoin bridges, covenants and smart contracts

Researchers at Stanford University and Byzantine Research have published a cryptography paper that could materially shrink the cost of witness encryption — potentially unlocking a range of trust-minimized Bitcoin applications that today rely on custodians or watchdogs.

What they built
In “Praxis: Practical Witness Encryption for NP,” David Tse, Nikhil Vanjani and Psi Vesely describe a new witness encryption construction that, the authors say, is the first to combine:
- general-purpose functionality (it works for arbitrary NP statements, not a single bespoke problem),
- provable security under a standard lattice assumption (Module-SIS), and
- computational and storage costs the team calls practical.

Quick refresher: witness encryption lets you encrypt a message to a mathematical statement rather than to a conventional key. Anyone who can produce a valid witness (a proof that the statement is true) can decrypt the ciphertext — no key-distribution and no trusted release party required. That makes it an attractive primitive for conditional release of secrets across blockchains, private transactions and other trust-reducing protocols.

Why Praxis matters
Prior general-purpose witness encryption proposals either relied on fragile assumptions or were astronomically expensive in practice. The landmark construction by Hair and Sahai, for example, required infeasible amounts of storage: at a 100-bit security level it would need more than 110 billion GiB of ciphertext to encrypt a 100-bit key under the same statement.

Praxis slashes those costs. The paper reports ciphertext size of roughly 7.88 GiB for that same 100-bit-key example — a reduction of more than ten orders of magnitude for encryption/storage and more than six orders for decryption effort. According to the authors, encryption and decryption can run in seconds on a laptop, though the operations require nontrivial memory (around 12 GB for encryption and 5 GB for decryption).

Technical highlights
- Praxis uses a witness key-encapsulation mechanism (KEM): it generates a symmetric secret key (usable for messages of any length) that can only be recovered by someone holding a valid witness.
- The construction reduces the decrypter’s search to one unknown mathematical value if they have a witness; without a witness the attacker faces a much harder problem involving four unknowns.
- Praxis leverages Groth16 SNARKs for compact, efficient verification of arbitrary computations. A single fixed Groth16 verification key can serve different programs, meaning developers can define encryption conditions against programs written in standard languages (e.g., Rust), so long as the program’s execution can be proven in a compatible proof system.
- Security rests on Module-SIS, a lattice-based assumption believed to be quantum-resistant, unlike some earlier schemes built on number-theoretic assumptions later weakened by cryptanalysis.

Potential Bitcoin use cases
Bitcoin’s scripting language is intentionally limited, so many advanced applications bring computations off-chain and rely on economic incentives (and honest challengers) to defend against fraud. Examples:
- BitVM-style schemes and rollups: BitVM enables off-chain computation that can be validated on-chain via disputes; Citrea’s zero-knowledge rollup launched in January uses a BitVM-based mechanism that still needs at least one honest participant to challenge fraud.
- Bridges: Praxis could encrypt the secret required to spend BTC against the statement “withdrawal X on chain Y has been processed correctly.” Anyone who can produce the corresponding proof would be able to unlock the BTC, reducing dependence on custodians or constant watcher participation — provided the bridge protocol precisely specifies the withdrawal predicate and the proof system.
- Covenants: Praxis could enable more expressive control over how coins are spent by encrypting conditions tied to arbitrary computational checks.

Caveats and open questions
- Groth16 trusted setup: the practical Groth16 implementation used in Praxis requires an honest trusted setup. If an adversary retains the setup’s secret randomness, they could decrypt any ciphertext tied to that verification key. That’s a major tradeoff compared with fully transparent primitives.
- Assumptions and scrutiny: Module-SIS is a standard lattice assumption but, as with any cryptographic primitive, real-world deployment requires extensive peer review and implementation hardening.
- Resource requirements: while far lower than predecessors, Praxis still needs multiple gigabytes of memory and nontrivial computation — reasonable for many server or relayer scenarios but not zero-cost.
- Integration challenges: embedding witness-encryption workflows into Bitcoin tooling, wallet UX, and cross-chain protocols will take engineering work and careful specification of on-chain predicates.

Where this sits relative to other work
Other efforts to give Bitcoin richer transaction capabilities have also hit heavy computational costs. Alloc Init’s Shielded Bitcoin project and its PIPE witness-encryption variant have been proposed to facilitate private deposits/withdrawals without changing consensus. Alloc Init reported PIPEs storage needs in the hundreds of terabytes for earlier iterations (roughly 330 TB), with a potential path down to about 100 GB — still much larger than Praxis’s reported ciphertext sizes in the paper.

Bottom line
Praxis is a major step toward making witness encryption practical for real applications. It doesn’t eliminate all tradeoffs — trusted setup and cryptographic assumptions remain — but it dramatically narrows the performance gap that made general-purpose witness encryption largely academic. If the scheme passes wider cryptographic scrutiny and engineering work follows, Praxis could become an important building block for more trust-minimized Bitcoin bridges, covenants and off-chain verification schemes.
Disclaimer: The information on this page may have been obtained from third parties and does not necessarily reflect the views or opinions of KuCoin. This content is provided for general informational purposes only, without any representation or warranty of any kind, nor shall it be construed as financial or investment advice. KuCoin shall not be liable for any errors or omissions, or for any outcomes resulting from the use of this information. Investments in digital assets can be risky. Please carefully evaluate the risks of a product and your risk tolerance based on your own financial circumstances. For more information, please refer to our Terms of Use and Risk Disclosure.