RISC Zero: proving RISC-V execution with a zkVM, receipts and image IDs
RISC Zero is a zero-knowledge verifiable general computing platform based on zk-STARKs and the RISC-V microarchitecture.
At a glance
- What is it?
- RISC Zero compiles code to a RISC-V ELF, runs it in a zkVM and hands back a receipt that a verifier can check without seeing the inputs. This covers the protocol vocabulary, the install path, the stated security level and the limits the repository admits to.
- Who is it for?
- Pick RISC Zero when the thing to prove is ordinary Rust, C or C++ code and the verifier only needs the journal, not the inputs. Skip it if you need a security level above the 98 conjectured bits of the default parameters, or a language with no RISC-V toolchain.
- Can I use it commercially?
- Yes. Apache-2.0 is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository last received commits 13 days ago.
- What is it written in?
- Mainly C++, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.
Star history
- risc0/risc02,217 ★ · +16
| Repository | 2026-10-08 | 2026-11-25 |
|---|---|---|
| risc0/risc0 | 2.2k | 2.2k |
16 Stars in the last 48 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
Main is the development branch, so applications should pin a release tag
The first thing the repository says is a warning: main is the development branch, and anyone building applications or running examples should use the latest release instead. That matters because the tree on main is ahead of what is published. The workspace Cargo.toml on main carries version 5.0.0 and edition 2024, while the releases listed for the project are v3.0.6 (2026-07-17), v3.0.5 (2026-02-03) and v5.0.0-rc.1 (2026-01-15).
Cloning the repository and building whatever is checked out is therefore the wrong default. Check out a tag, or install through rzup and depend on the published crates. The project is not archived, and the last push landed on 2026-10-25, so the warning reflects an active development branch and not a stale one.
The repository is licensed Apache-2.0 in its metadata, and the badge row and the workspace manifest both give the dual form Apache-2.0 OR MIT. LICENSE-APACHE and LICENSE-MIT both sit in the root. Anyone with a licence policy should read the two files and not rely on the single SPDX label shown on the repository page.
A method is an ELF file, and its image ID is the hash a verifier pins
Proving starts with compilation. The code to be proven is compiled from its implementation language into a method, which is a RISC-V ELF file with a special entry point that runs the method's code. For that ELF you compute an image ID, a special type of cryptographic hash of the file, and verification cannot happen without it.
In practice the image ID is what ties a proof to a program. A verifier who holds the image ID for a specific build knows which code produced the receipt. Change one byte of the guest source, rebuild, and the ELF and the image ID move with it. A receipt made from the old build will not match the new ID.
The zkVM emulates a small RISC-V computer, which is why the repository can say it runs arbitrary code in any language, so long as a compiler toolchain exists that targets RISC-V. Inside the workspace the emulated machine shows up as the risc0/circuit/rv32im crate, with a matching rv32im-sys crate next to it. The instruction set named in those paths is rv32im, the 32-bit integer base with multiplication and division.
The host cannot modify the guest, and the journal is the only public output
Two roles run during a proof. The logical RISC-V machine inside the zkVM is the guest. The prover that runs the zkVM is the host. They can talk to each other while the method executes, but the host cannot change how the guest executes. If it tries, the proof being generated is invalid.
The guest has exactly one channel to the outside world that counts: the journal, an append-only log the guest writes to during execution. The journal is the official output of the computation. Anything the guest does not write there stays hidden from the verifier.
This is the zero-knowledge part in concrete terms. The verifier learns what the journal contains and that the code ran correctly, and nothing about inputs or state during execution. Data passed between host and guest is also hidden, except as implied by the journal and by correct execution.
The design puts the burden on the guest author. If the guest writes a secret into the journal, the verifier sees it, and nothing in the protocol stops that. Deciding what goes into the journal is the privacy decision of the whole application.
A receipt is a journal plus an opaque seal, and tampering with either fails verification
When a method terminates correctly, the prover produces a receipt. The receipt has two parts: the journal written during execution, and the seal, a blob of opaque cryptographic data. The verifier checks the receipt and reads the log.
If anyone alters the journal or the seal, the receipt fails to verify. Forging one is described as cryptographically infeasible unless the journal holds exactly the correct output for some valid execution of the method whose image ID matches the receipt. That sentence has three conditions, and a verifier has to enforce all of them: check the receipt, check the image ID against the one it expects, and then read the journal.
Skipping the image ID check is the easy mistake. A receipt can verify against some image ID and still not come from the program you meant to trust. The repository names the image ID as required for verification, so supply the expected value and do not accept whichever one arrives with the receipt.
The workspace also carries a risc0/zkvm/receipts crate, a risc0/groth16 crate and examples/groth16-verifier, which is where the Groth16 side of the proof system lives.
Default parameters reach 98 bits of conjectured security, not more
The security section describes a three-layer recursive proof system, built on the zk-STARK protocol and the Groth16 protocol. With default parameters it achieves perfect zero-knowledgeness and 98 bits of conjectured security.
The word conjectured carries weight here. 98 bits is not a proven bound, and it is the figure for default parameters only. A project with a stricter requirement cannot read it as a guarantee. The cryptographic assumptions are written up on a separate Security Model page, and the STARK protocol is described in a paper titled Scalable, Transparent Arguments of RISC-V Integrity.
A soundness and security calculator is included in the soundness.rs file. To run it, set RUST_LOG=risc0_zkp=debug when running a proof:
RUST_LOG=risc0_zkp=debugThe variable is read when a proof runs, so there is no separate calculator binary to launch. The output appears with the debug logging of the risc0_zkp crate, which means a team that wants the number for its own parameter choices has to produce a proof first. The repository does not document any procedure for raising the security level, so changing parameters means reading the source.
The install path is curl to rzup, then rzup install, then cargo risczero
Setup needs Rust first. After that, the RISC Zero toolchain installer is rzup, and rzup in turn installs cargo-risczero. The installer comes from a curl pipe into bash:
curl -L https://risczero.com/install | bashThat command pipes a remote script into a shell, so anyone with a policy against it will want to download and read the script first. Then install the toolchain:
rzup installConfirm the installation worked:
cargo risczero --versionAfter that, a new project is scaffolded with the standard boilerplate and directory layout:
cargo risczero new my_projectThe options for cargo risczero are documented in the README of its own crate, risc0/cargo-risczero, and a separate Getting Started page covers how projects are usually structured. The rzup installer has its own directory in the repository, rzup/, and is a workspace member. Building from source is a different path and needs extra tools and steps, all of which sit in CONTRIBUTING.md and not in the main README. Local Rust docs come from cargo doc, with dependencies listed in the same CONTRIBUTING.md.
Only Rust, C and C++ have SDK support, and everything else waits for a RISC-V compiler
Language reach has a stated edge. The zkVM can run arbitrary code in any language that has a compiler toolchain targeting RISC-V, but SDK support currently exists for Rust, C and C++. A team writing guests in Go, Python or anything else outside that list has no SDK to lean on. Whether such a toolchain produces a usable guest is not something the repository covers.
The examples directory shows what the SDK path looks like in practice. There is a hello-world, a c-guest for C, and guests for sha, keccak, ecdsa, bn254, bls12_381, c-kzg, jwt-validator, password-checker, digital-signature, voting-machine, chess, json, wasm, smartcore-ml, bevy, browser-verify, profiling, prorata and composition. Most of these are Rust, since the examples have a Cargo.toml and Cargo.lock of their own.
The repository text also leaves a few things out. Proving time, memory use and hardware requirements are not stated anywhere in the README, so sizing a prover is guesswork until you run an example. The GPU side shows up in the workspace as tools/gpu-guard, tools/hotbench and a vendored sppark directory, along with the metal dependency, but no page documents which GPUs work. The supported platforms and minimum Rust version are likewise not written down here.
Editorial conclusion
Pick RISC Zero when the thing to prove is ordinary Rust, C or C++ code and the verifier only needs the journal, not the inputs. Skip it if you need a security level above the 98 conjectured bits of the default parameters, or a language with no RISC-V toolchain. Before writing any code, check which release tag you build against, because main is the development branch.
Frequently asked questions
What is RISC-V used for in RISC Zero?
RISC Zero emulates a small RISC-V computer inside its zkVM so that arbitrary code can be proven, provided a compiler toolchain targets RISC-V. SDK support currently exists for Rust, C and C++.
How does sp1 vs risc0 compare?
The RISC Zero repository does not mention SP1 or compare itself to any other zkVM. What it does state is its own design: zk-STARKs over a RISC-V emulation, with 98 bits of conjectured security at default parameters.
Does RISC-V have a future, going by the RISC Zero project?
The repository makes no forecast about RISC-V. It shows a project that builds its zkVM around the RISC-V instruction set, with an rv32im circuit crate in the workspace and a last push on 2026-10-25.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/risc0-risc0)Star history chart for your README
[](https://hysenlabs.com/projects/risc0-risc0)Was this useful?