Stanford's Praxis cuts witness encryption costs by 10 orders of magnitude
Stanford and Byzantine Research's Praxis witness encryption scheme cuts ciphertext storage from over 110 billion GiB to 7.88 GiB, potentially reducing reliance on custodians in Bitcoin bridges.
Outputs
Praxis reduces ciphertext storage from over 110 billion GiB to 7.88 GiB at a 100-bit security level.
The paper "Praxis: Practical Witness Encryption for NP" is authored by Stanford's David Tse, Nikhil Vanjani and Psi Vesely of Byzantine Research.
Encryption and decryption take seconds on a laptop but require roughly 12 GB and 5 GB of memory respectively.
Citrea launched its BitVM-based mainnet in January, relying on at least one honest participant to challenge fraud.
Alloc Init's second PIPEs iteration needed roughly 330 TB of ciphertext storage, per founder Misha Komarov in February.
Researchers at Stanford University and Byzantine Research have introduced Praxis, a general-purpose witness encryption scheme that reduces ciphertext storage requirements from more than 110 billion GiB in an earlier construction to 7.88 GiB at a 100-bit security level. The figures come from a research paper titled "Praxis: Practical Witness Encryption for NP," authored by David Tse, Nikhil Vanjani and Psi Vesely.
What is witness encryption and why does it matter?
Witness encryption, first proposed in 2013, lets information be encrypted against a mathematical statement rather than a conventional key. Anyone who can produce a valid proof that a predetermined condition has been met can decrypt the data. According to the authors, previous general-purpose attempts were either computationally impractical or relied on assumptions that were later challenged or broken.
Praxis, the paper states, is the first construction to combine general-purpose functionality, security guarantees under specified assumptions, and computational costs the researchers consider practical. "A ciphertext carries its own release condition, with no key to distribute and no party trusted to release the message," the researchers explained.
The consequences for Bitcoin are direct. Bitcoin's limited scripting language makes it difficult to verify complex mathematical proofs on the network itself, so applications that depend on computations on other chains need workarounds. BitVM, for example, runs computations off Bitcoin and relies on participants to challenge fraudulent claims through transactions submitted to the main network. In January, Bitcoin zero-knowledge rollup Citrea launched its mainnet with a BitVM-based verification mechanism that requires at least one honest participant to police fraud.
Witness encryption offers an alternative: a Bitcoin bridge could encrypt the secret needed to unlock BTC against a statement confirming that the corresponding withdrawal was processed correctly on the other network. Provided the protocol defines and enforces its withdrawal conditions securely, such a construction reduces dependence on custodians and watchdog participants. The paper also identifies Bitcoin covenants, which restrict how coins can subsequently be spent, as another candidate application.
How does Praxis work?
Praxis lets developers encrypt a secret against the outcome of a computer program. A decryptor needs no key but must hold a valid proof that the program produced the required result. The scheme uses a witness key encapsulation mechanism: it generates a secret key, which then encrypts messages of any length with conventional symmetric encryption.
During decryption, a holder of a valid witness must recover one unknown mathematical value through computational search. An attacker without a witness faces a problem with four unknown values. Security rests on Module-SIS, an assumption underlying lattice-based cryptography. Unlike earlier schemes built around specific mathematical problems, Praxis accepts general computational statements, so one mechanism covers different applications.
The construction builds on earlier work by cryptographers Hair and Sahai. At the 100-bit security level, that earlier design would have required over 110 billion GiB of ciphertext to encrypt a 100-bit key under the same statement. Praxis cuts ciphertext size and encryption costs by more than ten orders of magnitude and decryption costs by more than six.
Praxis uses Groth16, a proof system whose single fixed verification key can serve different computational programs. Developers could write encryption conditions in conventional languages such as Rust, provided execution is verifiable through a compatible proof system. Encryption and decryption take seconds on a laptop, per the paper, though the operations need roughly 12 GB and 5 GB of memory respectively. One caveat remains: the Groth16 implementation requires an honest trusted setup, since anyone retaining its secret randomness could decrypt ciphertexts generated with the corresponding verification key.
Have Bitcoin developers tried this before?
Yes, and the storage burden explains why nothing shipped at scale. In September, researchers at Alloc Init introduced Shielded Bitcoin, a proposed privacy system meant to conceal transaction participants and amounts without changing Bitcoin's consensus rules. That project plans to use a witness encryption construction known as PIPEs for Bitcoin deposits and withdrawals.
In February, Alloc Init founder Misha Komarov disclosed that the second PIPEs iteration required roughly 330 TB of ciphertext storage, with researchers identifying a possible path toward roughly 100 GB. Praxis's 7.88 GiB figure, for a comparable 100-bit key encryption, sits roughly an order of magnitude below even that projected target.
The gap between a paper and a deployed Bitcoin bridge still runs through engineering: the trusted-setup requirement and the memory footprint mean Praxis is a starting point, not a finished product. The next test will be whether teams such as Citrea or Alloc Init adopt the construction in bridge or privacy designs before alternative covenant-enabling protocol changes reach Bitcoin's consensus layer.
via crypto.news (Source)
More from Tom Whitfield
Show full bio
News editor covering technology and product news in crypto and web3 industry at Mempool Brief.
1,690 articles