Skip to content

ManuelArto/EthProofValidator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

.NET ETH Proofs ZK Verifier

This project serves as a Proof of Concept for a .NET application designed to validate Ethereum block proofs aggregated by Ethproofs.org.

Ethproofs.org is a block proof explorer for Ethereum that aggregates data from various zkVM (Zero-Knowledge Virtual Machine) teams. It provides a comprehensive overview of proven blocks and allows users to explore proof metadata.

This application acts as a wrapper for various native ZK verifiers implemented in Rust, enabling .NET applications to verify these cryptographic proofs. It supports multiple proof systems (such as OpenVM, Pico, Zisk, etc.) to validate the execution of Ethereum blocks, contributing to the goal of enabling full ZK light clients and validating Ethereum state with a single proof.

The project demonstrates how to bridge .NET and high-performance Rust-based ZK verifiers to interact with the growing ecosystem of Ethereum zkVMs.

This project specifically focuses on multi-GPU ZK verifiers, as they are currently the only ones that provide Real-Time Proving (RTP).

Important Disclaimer

This project is strictly connected to Ethproofs.org. Due to the dynamic nature of the Ethereum proof ecosystem, ethproofs.org frequently updates its provers and verification keys. Therefore, this project requires active maintenance to ensure compatibility and correct functionality with the latest changes from ethproofs.org.

Project Structure

The repository is composed of two main parts:

  • src/: The main C# .NET project (EthProofValidator). This contains the application logic, models, and interfaces for interacting with the ZK verifiers.
  • native-zk-verifier/: A Rust project that implements the actual ZK verifier logic for different proof systems (e.g., Zisk, OpenVM, Pico, SP1 Hypercube, Airbender). The .NET application communicates with this Rust library.

Building and Running

Prerequisites

  • .NET SDK (e.g., .NET 10)
  • Rust Toolchain (e.g., rustup)

Build Steps

  1. Build the .NET Application (includes Rust Verifiers): Navigate to the root directory of the .NET project and build the C# application. This process will automatically build the Rust verifier library and copy the necessary native libraries into the output directory.

    dotnet build src

Running the Application

After building both components, you can run the .NET application from the root directory:

dotnet run --project src <LatestBlockId> <BlockCount>

This will execute the Program.cs which should then utilize the compiled Rust verifiers.

Demo Behavior

The current implementation in src/Program.cs is configured to run a demonstration that validates a sequence of Ethereum blocks. The application sequentially attempts to fetch and validate the proofs for each of these blocks, printing the elapsed time for each validation to the console. It showcases the integration between the .NET application and the native Rust ZK verifiers, providing insights into the performance and reliability of the proof validation process.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published