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.
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.