Satoshi BrotherYour brother in the market
EN

Stanford University and Byzantine Research Unveil Innovative Cryptographic Method for Bitcoin Enhancements

Stanford's new cryptographic scheme, Praxis, aims to revolutionize Bitcoin by enhancing security and reducing reliance on intermediaries for transactions and contracts.

Stanford University and Byzantine Research Unveil Innovative Cryptographic Method for Bitcoin Enhancements

Introduction

A collaborative research effort between Stanford University and Byzantine Research has resulted in a groundbreaking cryptographic approach aimed at enhancing the functionality of Bitcoin bridges, scaling solutions, and smart contracts. Titled "Praxis: Practical Witness Encryption for NP," the study was authored by researchers David Tse, Nikhil Vanjani, and Psi Vesely, and presents significant advancements in witness encryption, a method first proposed in 2013.

Witness Encryption Overview

Witness encryption deviates from traditional encryption methods by allowing data to be secured against a mathematical statement rather than using a conventional key. This means that individuals capable of providing valid proof that a certain condition has been met can access and decrypt the information. While past attempts to create general-purpose witness encryption have often been met with computational impracticalities or undermined cryptographic assumptions, the team claims that Praxis stands out as the first framework to successfully merge broad utility, robust security assurances under specific conditions, and computational efficiency.

Challenges in Bitcoin Development

A noteworthy challenge for developers working on Bitcoin applications is the platform's restricted scripting language, which complicates the verification of intricate mathematical proofs directly on the blockchain. Solutions like BitVM have emerged, allowing computations to occur externally while permitting users to challenge fraud through transactions on the main Bitcoin network. An example of this innovation is the Bitcoin zero-knowledge rollup, Citrea, which implemented a BitVM-based validation system that requires at least one honest participant to contest any fraudulent actions.

Praxis Framework

Praxis introduces an alternative approach by linking access to Bitcoin resources to the generation of a valid cryptographic proof. According to the authors, the information needed to unlock a Bitcoin asset can be encrypted with a self-contained release condition, thus eliminating reliance on key distribution or trusted intermediaries. For instance, in a Bitcoin bridge scenario, the secret to access BTC could be conditioned upon a verified statement confirming a successful withdrawal on a different network, reducing the need for custodians to monitor transactions.

Applications and Mechanisms

The research identifies Bitcoin covenants, which impose spending restrictions on coins, as a viable application for Praxis. The framework allows developers to securely encrypt a secret based on the outcome of a computer program. To decrypt the information, individuals only need a valid proof that indicates the program has fulfilled the requisite outcome, as opposed to requiring the original encryption key. This contrasts sharply with scenarios lacking valid proof, where accessing the same information becomes significantly more complex.

Central to Praxis’s functionality is a witness key encapsulation mechanism that creates a secret key for conventional symmetric encryption, allowing for the secure handling of messages of varying sizes. When decrypting, only one unknown value needs to be discovered by someone holding a valid witness, while those without it face a far more challenging task involving four unknowns. The scheme's integrity hinges on the security assumption known as Module-SIS, part of the framework underpinning lattice-based cryptography.

Efficiency and Flexibility

Unlike previous witness encryption models limited to specific mathematical challenges, Praxis provides a flexible mechanism that supports general computational statements, enabling diverse applications without necessitating unique cryptographic frameworks for each one. The development builds on prior research by cryptographers Hair and Sahai, whose earlier witness encryption methods demanded excessive storage and computation resources. Remarkably, Praxis has reduced the storage requirement from over 110 billion GiB needed to encrypt a 100-bit key to just 7.88 GiB, thereby improving both encryption and decryption efficiency significantly.

Implementation and Future Prospects

Praxis utilizes Groth16, a cryptographic proof system that allows validation of complex computations through concise proofs, with a single verification key capable of processing various computational tasks. Developers can define their encryption conditions in widely-used programming languages such as Rust, as long as their execution is verifiable by an appropriate proof system.

Encryption and decryption processes are performed relatively swiftly, taking only seconds on standard laptops, although they require extensive memory allocations (approximately 12 GB for encrypting and 5 GB for decrypting). Importantly, the Groth16 implementation necessitates a trustworthy setup, as anyone retaining the secret randomness could decrypt ciphertexts generated by the corresponding verification key.

Earlier initiatives aimed at enhancing Bitcoin's transaction capabilities have faced similar computational hurdles, highlighting the relevance of Praxis. In September, Alloc Init introduced Shielded Bitcoin, a privacy-oriented project designed to obscure transaction amounts and participant identities without altering Bitcoin’s consensus framework, also drawing on witness encryption techniques. In February, Alloc Init's Misha Komarov indicated that the second iteration of PIPEs for this project still required significant storage space, approximately 330 TB, but researchers are seeking ways to reduce this substantially to around 100 GB.

Also in other languages: РусскийDeutschFrançaisItalianoEspañol

Editorial & AI policy · Contact