Quick Take
- Praxis reduces the size of proof-locked data and the computing work needed to encrypt it in the authors’ estimates.
- A bridge could use an off-chain proof to unlock a signing key, while Bitcoin checks an ordinary signature.
- A working bridge would still need to generate proofs, distribute the encrypted data and account for the proof system’s setup.
Praxis, a cryptography preprint cleared for posting on Nov. 23, proposes a way that could make it easier to test Bitcoin payments by reducing both the size of data locked behind a proof and the computing work needed to encrypt it.
Imagine moving Bitcoin through a bridge. The bridge locks the coins on the Bitcoin mainnet while you hold a matching claim on another chain.
To get the Bitcoin back, you would give up that claim. The bridge then needs to release the right amount to the right recipient. A design using witness encryption could make the proof that you gave up the claim unlock the information needed to authorize the payment.
In the Praxis preprint, David Tse, Nikhil Vanjani and Psi Vesely described how to set a condition for opening encrypted information.
In their example, someone with a valid mathematical proof that the condition is met can recover the key that opens the encrypted data. The authors list bridges without a custodian and rules about how Bitcoin can be spent as possible applications.
Bitcoin already checks conditions when someone spends coins. One familiar condition is a valid signature showing that the spender controls the right key. Checking a compact proof of a complicated calculation directly on Bitcoin is harder because its scripting language gives developers a limited set of on-chain checks.
An earlier proposal, Bitcoin PIPEs v2, encrypts a Bitcoin signing key behind a condition. A valid proof unlocks the signing key outside the Bitcoin network, and the resulting transaction carries a signature Bitcoin already knows how to check.
How a proof could authorize a Bitcoin payment
The earlier PIPEs v2 proposal shows where a proof and a signature would each do their work.
A bridge would have to tie the proof and the resulting signing authority to the intended recipient and amount.
In the article’s bridge example, the proof would show that the claim on the other network had been retired.
In the example, the proof would establish that the matching claim had been retired. Bitcoin would see a signature, so the bridge would have to make sure the signing authority applies to the intended payment, including the recipient and amount.
The encryption scheme lets designers tie access to a proof, and turning that into a working withdrawal system is a separate job.
Earlier BABE research uses witness encryption for one specific kind of mathematical check. Praxis is designed for a much wider range of conditions, as long as a solution to the condition can be checked efficiently.
That opens up more designs researchers could test without asking Bitcoin to do the complicated proof check itself.
The cost of opening the Bitcoin lock
In the paper's example, the authors calculate that the encrypted package would take up 7.88 GiB at their stated 100-bit security level.
For the same condition, key length and stated security level, they estimate that the package size and the work of encrypting it are each below one ten-billionth of the costs they calculate for earlier designs by Hair and Sahai.
The authors compared calculated sizes and operation counts across schemes with different security assumptions. Anyone opening the Praxis package would still need access to several gigabytes of encrypted data.
The authors count the work of opening the package from the point when a valid proof is already available. A bridge using this approach would also have to account for the time and computing power needed to produce that proof, wherever it is produced.
The proof system used in the example also needs an honestly run setup. The authors say anyone who kept the setup secret could make proofs that pass the check and open packages tied to that setup.
A team building a bridge would have to handle that risk as well as the logistics of producing proofs and making the encrypted package available when someone needs to withdraw.


