← Socratic Seminar #52 ← → or space to navigate

IACR ePrint 2026/2971 · arXiv 2611.28552 · preprint, 2026-11-21

Praxis: practical witness encryption for NP

Encrypt a message so that anyone who can prove a statement can read it, with no key holder. After 13 years of feasibility results, a scheme with real numbers: a 7.88 GiB ciphertext and seconds to encrypt or decrypt.

David Tse, Nikhil Vanjani, Psi Vesely (Byzantine Research, Stanford; contacts at babylonchain.io) · eprint.iacr.org/2026/2971 · Lean proofs: psivesely/praxis-lean

Background

Encrypt to a statement, not to a key

Normal public-key encryption: only the holder of the secret key can decrypt. Witness encryption: the message is locked to a statement, and anyone holding a valid witness, such as a proof, can decrypt; if the statement is false, the message stays hidden. PUBLIC-KEY ENCRYPTION message Alice's pubkey ciphertext only Alice holds the secret key WITNESS ENCRYPTION message a statement ciphertext carries its own condition anyone with a witness e.g. a valid proof No key to distribute, no party trusted to release it. If the statement is false, the message stays hidden.

Introduced by Garg, Gentry, Sahai and Waters (STOC 2013). "Extractable" WE goes further: anyone who can tell encryptions apart must effectively know a witness.

The problem

13 years of "pick two"

Every earlier construction had at most two of three properties. The paper claims Praxis is the first with all three.

General

Works for any NP statement. Practical schemes with proofs only handled narrow relations, like signatures or commitment openings.

Proven secure

Under well-studied models and assumptions. Other NP schemes rested on heuristics or purpose-built assumptions, many since attacked or broken.

Practical

Real sizes and running times. The proven general schemes (via iO, codes, or a rank gap) were feasibility results only.

  • Starting point: Hair and Sahai (arXiv 2609.18275, Sep 2026) proved WE for NP in the generic group model from a "rank gap". Their abstract credits the main results to "Codex / ChatGPT 6 Astra Ultra", working from a strategy the authors suggested.
  • Praxis keeps their template but fixes the gap, and ends decryption with a short search instead of a polynomial one.

The construction

One Groth16 verifier serves every statement

Praxis encrypts once to a fixed Groth16 verifier on BN254 with the instance as constants. To decrypt, run any program in a zkVM to get a Groth16 proof, feed it to decryption, then search a short range for one secret integer. Without a witness, an attacker must guess four integers at once or solve Module-SIS. ENCRYPT instance: program + public inputs/outputs fixed Groth16 verifier, BN254 quadratic system, ~2^18.6 unknowns ciphertext 7.88 GiB DECRYPT e.g. a Rust program + an accepted input zkVM / SNARK ends in Groth16 proof → linear work over the ciphertext short search ~2^29.4 guesses Without a witness: guess four secret integers at once (exponentially longer), or solve Module-SIS.

Because the verifier is universal, every relation gets the same system size and the same costs. Decryption yields a key (a witness KEM), so a normal cipher handles messages of any length.

The numbers · 100-bit security, same Groth16 statement

Over ten orders of magnitude smaller

Log-scale comparison with Hair and Sahai's basic construction. Ciphertext: 1.1 times 10 to the 11 GiB versus 7.88 GiB. Encryption: 2.6 times 10 to the 20 versus 2.0 times 10 to the 10 field multiplications. Decryption: 1.2 times 10 to the 16 versus 8.6 times 10 to the 9. 10⁰ 10⁵ 10¹⁰ 10¹⁵ 10²⁰ Ciphertext (GiB) 1.1 × 10¹¹ Hair–Sahai 7.88 Praxis Encryption field mults 2.6 × 10²⁰ 2.0 × 10¹⁰ (2^34.2) Decryption field mults, expected 1.2 × 10¹⁶ 8.6 × 10⁹ (2^33.0)

Log scale, from the paper's Table 1, against Hair and Sahai's basic construction (their values are lower bounds). Ciphertext and encryption: over ten orders of magnitude smaller; decryption: over six.

Practical, with an asterisk

Laptop-scale, but 7.88 GiB per ciphertext

Encrypt

2^34.2 field multiplications, "seconds on a laptop" per the paper. About 12 GB of memory.

Decrypt

2^33.0 expected, also seconds, given a Groth16 proof. About 5 GB of memory, with the ciphertext streamed. Fails with probability under 2^−252.

Ciphertext

7.88 GiB (8.46 GB as sent), the same for every statement. About 2^27.6 group elements, batch-compressed.

  • Practical next to the 10¹¹ GiB before it, but you won't put it on-chain or email it. Each ciphertext is tied to one statement.
  • Decryption is exponential in the security level, just short at λ = 100: about 2^(λ/4) · N^(1/4) operations.

What it rests on

Assumptions and caveats

Honest Groth16 setup

Whoever kept the setup's secret randomness could decrypt every ciphertext made for that key. Same trust as the SNARK, but now it guards secrets.

Idealized models

Extraction is proved in the bilinear generic group model and random oracle model, under Module-SIS. Real attacks on BN254 aren't generic: discrete log there is about 2^103.

Parameters by best attack

Module-SIS is sized by the best known attack, standard practice. For the proof alone to give 100 bits, it would need about 4.5 more bits.

Fresh and unreviewed

A preprint posted 2026-11-21. Lean 4 checks correctness and extraction at these exact parameters; matching definitions to intent is checked by reading.

Why bitdevs should care

Bitcoin uses the paper cites

Custodian-free bridges

Hioki, 2022: encrypt a deposit address's private key so only a proof of redemption on the other chain can recover it.

Proof verification

BABE (with Tse): WE plus a garbled circuit to verify Groth16 on Bitcoin, 1000× less off-chain storage than BitVM3's 42 GiB garbled circuits.

Covenants, no soft fork

Bitcoin PIPEs v2: lock a Bitcoin key under an NP statement; the spend is an ordinary Schnorr signature.

  • The paper lists these uses but doesn't build them. Is a 7.88 GiB ciphertext workable for a bridge operator?
  • If WE can emulate covenants, does that weaken the case for OP_CAT or CTV, or strengthen it?
  • Who would you trust to run the Groth16 setup when its toxic waste decrypts the coins' keys?
  • How much weight do we give generic-group proofs for keys that guard bitcoin?