Stanford University's encryption breakthrough may mark a new phase for Bitcoin
Researchers from Stanford University and Byzantine Research have developed a new cryptographic scheme that could reduce the reliance of Bitcoin bridges, scaling solutions, and smart contracts on trusted intermediaries and continuous fraud monitoring.
- Researchers from Stanford University and Byzantine Research have proposed Praxis, a general-purpose witness encryption scheme that could be applied in multiple areas of the Bitcoin ecosystem.
- This technology is expected to help developers build Bitcoin bridges and scaling solutions, while reducing reliance on custodians and those responsible for monitoring participants in fraudulent activities.
- At the same security level, Praxis has reduced the amount of ciphertext storage required from over 110 billion GiB in earlier configurations to 7.88 GiB.
- This solution supports existing zero-knowledge proof frameworks, however, its Groth16 implementation requires honest and credible settings.
According to the research paper titled " Praxis : Practical Witness Encryption for NP ", researchers David Tse, Nikhil Vanjani, and Psi Vesely have devised a method that significantly reduces the computational cost of witness encryption. Witness encryption is a cryptographic technique that was first proposed in 2013.
Witness encryption allows information to be encrypted with respect to a certain mathematical proposition, rather than using traditional keys for encryption. This means that anyone who can provide a valid proof under the preset conditions can decrypt the information.
Over the past decade, researchers have proposed various constructions, but they pointed out that previous general-purpose witness encryption schemes were either computationally impractical or relied on cryptographic assumptions that were later questioned or cracked.
According to the author, Praxis is the first construct that combines general functionality with mathematically established security guarantees under specific assumptions, and whose computational costs are considered practical for application by researchers.
Praxis How to expand the capabilities of Bitcoin?
Bitcoin's limited scripting language makes it difficult for developers to directly verify complex mathematical proofs on the network, especially when building applications that involve computations on other blockchains.
Existing solutions, such as BitVM, bypass this restriction by performing computations off the Bitcoin blockchain, allowing participants to challenge fraudulent claims through transactions submitted to the mainnet.
In January this year, the Bitcoin zero-knowledge rollup project Citrea went live on the mainnet and adopted a verification mechanism based on BitVM, requiring at least one honest participant to challenge any fraudulent activities.
Witnessing encryption may provide developers with another option, which is to set the permission to obtain information required to spend Bitcoin as one that requires a valid cryptographic proof to be produced first.
Researchers explain that:
"The ciphertext comes with its own release conditions; there is no need to distribute keys, and no party is trusted to release the message."
For example, in a Bitcoin bridge, the secret required to unlock BTC held on the original blockchain can be encrypted for a statement that confirms that the corresponding withdrawal on another network has been correctly processed.
As long as the underlying protocol can securely define and enforce its withdrawal conditions, such a structure may reduce reliance on custodians and those responsible for monitoring participants in bridge activities.
The paper also points out that Bitcoin contracts ( covenants ) are another potential application, and such mechanisms will limit how the currency can be spent in the future.
How does Praxis work?
The core of Praxis is a mechanism that allows developers to encrypt secrets based on the execution results of a certain computer program. Those attempting to decrypt the information do not need to know the original encryption key, but must possess a valid proof that the program has produced the desired result.
Praxis uses a cryptographic technology known as witness, key, encapsulation, and mechanism. This technology generates a key, which can then be used to encrypt information of any length through conventional symmetric encryption.
During decryption, those holding valid witnesses only need to calculate and search to recover an unknown mathematical value; whereas those without valid witnesses who wish to access the same information face a more difficult problem involving four unknown values.
This construction relies on a mathematical security assumption known as Module-SIS, which is one of the fundamental principles of lattice-based cryptography.
Unlike the early witness-based encryption schemes designed around specific mathematical problems, Praxis allows developers to handle general computational propositions. This means that the same underlying encryption mechanism can be adapted to different applications, without the need to construct a separate cryptographic scheme for each application.
Praxis will witness a reduction in encryption costs by several orders of magnitude
In terms of construction, Praxis is based on the early research of cryptographers Hair and Sahai; the latter's witness encryption scheme requires vast amounts of storage and computational resources.
At a security level of 100, researchers estimate that to encrypt a 100-bit key under the same mathematical proposition using early constructions, more than 110 billion GiB of ciphertext would be required.
Praxis reduced this number to 7.88 GiB. The size of the ciphertext and the encryption cost have decreased by more than 10 orders of magnitude, while the decryption cost has decreased by more than 6 orders of magnitude.
This scheme utilizes Groth16, which is a cryptographic proof system that allows developers to verify complex computations through compact proofs, and a single fixed verification key can serve different computational programs.
Therefore, developers can use conventional programming languages such as Rust to write programs that define encryption conditions, as long as their execution can be verified by a compatible proof system.
The paper states that encryption and decryption can be completed within seconds on a laptop, but these two operations require approximately 12 GB and 5 GB of memory respectively.
However, the implementation of the proposed Groth16 requires honest and credible settings, as anyone who retains its secret random number may be able to decrypt the ciphertext generated using the corresponding verification key.
Bitcoin developers are already exploring witness encryption.
Previously, other attempts to introduce more advanced trading functions for Bitcoin also encountered the computational limitations that Praxis sought to address.
In September this year, researchers from Alloc Init launched Shielded Bitcoin, a proposed privacy system designed to conceal transaction participants and amounts without modifying Bitcoin's existing consensus rules.
The project intends to use a witness encryption construct named PIPEs to support Bitcoin deposit and withdrawal services.
As early as February, Alloc Init founder Misha Komarov revealed that the second version of PIPEs would require approximately 330 TB of encrypted storage space. However, researchers believe there is a possible approach to reduce this requirement to around 100 GB.











