-
Notifications
You must be signed in to change notification settings - Fork 81
docs: intro and proof network #141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
8f682b9
docs: update core features
4a35c80
feat: check peg-in
42e5657
docs: update readme
3d8c1a8
docs: update readme
06228ab
docs: update readme
659ca21
docs: update readme
a94caf2
adding minimization chip area for innovations description (#143)
fulian89 3cafd74
feat: Add network prover introduction. (#144)
VanhGer 9b5ef1b
fix: missing example code. (#147)
VanhGer 4b0ae33
docs: update air
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,48 +1,69 @@ | ||
| # Overview | ||
|
|
||
| zkMIPS is an optimized iteration of the [ZKM](https://docs.zkm.io/introduction) protocol, introducing a novel [zkMIPS](https://github.com/zkMIPS)-based virtual machine that transforms [MIPS](https://en.wikipedia.org/wiki/MIPS_architecture) instructions into arithmetic circuits for STARK-powered zero-knowledge proofs. Designed for high-performance and trust-minimized computation, zkMIPS integrates cutting-edge cryptographic techniques and architectural improvements to address scalability bottlenecks in universal zkVMs. | ||
| zkMIPS is an open-source, simple, stable, and universal zero-knowledge virtual machine on MIPS32r2 instruction set architecture(ISA). | ||
|
|
||
| zkMIPS is the industry's first zero-knowledge proof virtual machine supporting the MIPS instruction set, developed by the ZKM team, enabling zero-knowledge proof generation for general-purpose computation. zkMIPS is fully open-source and comes equipped with a comprehensive developer toolkit and an efficient proof network. The Entangled Rollup protocol, built on zkMIPS, is a native asset cross-chain circulation protocol, with typical application cases including Metis Hybrid Rollup and GOAT Network. | ||
|
|
||
| ## Architectural Workflow | ||
|
|
||
| The workflow of zkMIPS is as follows: | ||
| - Frontend Compilation: | ||
| - Frontend Compilation: | ||
|
|
||
| Source code (Rust/Go) → MIPS assembly → Optimized MIPS instructions for algebraic representation. | ||
| - Constrained Execution: | ||
| Source code (Rust) → MIPS assembly → Optimized MIPS instructions for algebraic representation. | ||
| - Constrained Execution: | ||
|
|
||
| Emulates MIPS instructions while generating execution traces with embedded constraints (ALU, memory consistency, range checks, etc.) and treating columns of execution traces as polynomials. | ||
| - STARK Proof Generation: | ||
| - STARK Proof Generation: | ||
|
|
||
| Compiles traces into Plonky3 AIR (Algebraic Intermediate Representation), and proves the constraints using the Fast Reed-Solomon Interactive Oracle Proof of Proximity (FRI) technique. | ||
| - STARK Compression and STARK to SNARK: | ||
|
|
||
| To produce a constant-size proof, zkMIPS supports first generating a recursive argument to compress STARK proofs and then wrapping the compressed proof into a final, Groth16-compatible proof for efficient on-chain verification. | ||
| To produce a constant-size proof, zkMIPS supports first generating a recursive argument to compress STARK proofs and then wrapping the compressed proof into a SNARK proof for efficient on-chain verification. | ||
| - Verification: | ||
|
|
||
| On-chain verification of the Groth16-compatible proof. | ||
| On-chain verification of the SNARK proof. | ||
|
|
||
| ## Core Innovations | ||
| Building on ZKM's full functionality, zkMIPS optimizes the entire workflow to achieve industry-leading performance: | ||
| - MIPS-to-Circuit Compiler | ||
|
|
||
| Converts standard MIPS binaries into constraint systems with deterministic execution traces using proof-system-friendly compilation configuration with existing toolchains (GCC/LLVM). | ||
| - Multiset Hasing for Memory Consistency Checking | ||
|
|
||
|
|
||
| zkMIPS is the world first MIPS zkVM, and achieve the industry-leading performance with the core innovations as below. | ||
|
|
||
| - zkMIPS Compiler | ||
|
|
||
| Implement the first zero-knowledge compiler for [MIPS32r2 instruction set](/mips-vm/mips-vm.md). Converts standard MIPS binaries into constraint systems with deterministic execution traces using proof-system-friendly compilation and PAIR builder. | ||
|
|
||
| - "Area Minimization" Chip Design | ||
|
|
||
| zkMIPS partitions circuit constraints into highly segmented chips, strategically minimizing the total layout area while preserving logical completeness. This fine-grained decomposition enables compact polynomial representations with reduced commitment and evaluation overhead, thereby directly optimizing ZKP proof generation efficiency. | ||
|
|
||
| - Multiset Hashing for Memory Consistency Checking | ||
|
|
||
| Replaces Merkle-Patricia trees with multiset hashing for memory consistency checks, significantly reducing witness data and enabling parallel verification. | ||
| - KoalaBear Prime Field | ||
|
|
||
| - KoalaBear Prime Field | ||
|
|
||
| Using KoalaBear Prime \\(2^{31} - 2^{24} + 1\\) instead of 64-bit Goldilock Prime, accelerating algebraic operations in proofs. | ||
|
|
||
| - Hardware Acceleration | ||
|
|
||
| zkMIPS supports AVX2/512 and GPU acceleration. | ||
|
|
||
| - Integrating Cutting-edge Industry Advancements | ||
|
|
||
| zkMIPS constructs its zero-knowledge verification system by integrating [Plonky3](https://github.com/Plonky3/Plonky3)'s optimized Fast Reed-Solomon IOP (FRI) protocol and adapting [SP1](https://github.com/succinctlabs/sp1)'s RISC-V architecture verification primitives—including the recursive compiler, layered circuit builder, and precompilation modules—for the MIPS architecture. | ||
| zkMIPS constructs its zero-knowledge verification system by integrating [Plonky3](https://github.com/Plonky3/Plonky3)'s optimized Fast Reed-Solomon IOP (FRI) protocol and adapting [SP1](https://github.com/succinctlabs/sp1)'s circuit builder, recursion compiler, and precompiles for the MIPS architecture. | ||
|
|
||
| ## Target Use Cases | ||
| zkMIPS enables universal verifiable computation via STARK proofs, including: | ||
| - Hybrid Rollups | ||
| zkMIPS enables universal verifiable computation via STARK proofs, including: | ||
| - Bitcoin L2 | ||
|
|
||
| [GOAT Network](https://www.goat.network/) is a Bitcoin L2 built on zkMIPS and BitVM2 to improve the interoperability of Bitcoin. | ||
|
|
||
| - ZK-OP(HybridRollups) | ||
|
|
||
| Combines optimistic rollup’s cost efficiency with validity proof verifiability, allowing users to choose withdrawal modes (fast/high-cost vs. slow/low-cost) while enhancing cross-chain capital efficiency. [GOAT Network](https://www.goat.network/), a Bitcoin L2 built on zkMIPS, leverages Taproot scripts to validate computations, enabling non-EVM chains like Bitcoin to achieve Turing completeness while maintaining transaction finality via Bitcoin. | ||
| Combines optimistic rollup’s cost efficiency with validity proof verifiability, allowing users to choose withdrawal modes (fast/high-cost vs. slow/low-cost) while enhancing cross-chain capital efficiency. | ||
| - Entangled Rollup | ||
|
|
||
| Uses entangled rollups for trustless cross-chain communication, with universal L2 extension resolving fragmented liquidity via proof-of-burn mechanisms (e.g., cross-chain asset transfers). | ||
|
|
||
| - zkML Verification | ||
| Protects sensitive ML model/data privacy (e.g., healthcare), allowing result verification without exposing raw inputs (e.g., doctors validating diagnoses without patient ECG data). | ||
| Protects sensitive ML model/data privacy (e.g., healthcare), allowing result verification without exposing raw inputs (e.g., doctors validating diagnoses without patient ECG data). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.