54 releases (8 stable)

new 1.2.0-rc.1 Nov 23, 2024
1.1.2 Oct 3, 2024
1.0.5 Jul 30, 2024
1.0.0-rc.2 Dec 3, 2022
0.11.1 Aug 13, 2022

#1 in Emulators

Download history 3760/week @ 2024-08-04 3173/week @ 2024-08-11 3165/week @ 2024-08-18 4330/week @ 2024-08-25 4385/week @ 2024-09-01 5407/week @ 2024-09-08 4813/week @ 2024-09-15 6009/week @ 2024-09-22 5706/week @ 2024-09-29 3694/week @ 2024-10-06 3473/week @ 2024-10-13 4804/week @ 2024-10-20 6200/week @ 2024-10-27 5806/week @ 2024-11-03 5464/week @ 2024-11-10 5012/week @ 2024-11-17

22,625 downloads per month
Used in 20 crates

Apache-2.0 and maybe LGPL-3.0-or-later

8MB
109K SLoC

Contains (ELF exe/lib, 1KB) examples/loop.bin

The RISC Zero zkVM is a RISC-V virtual machine that produces zero-knowledge proofs of code it executes. By using the zkVM, a cryptographic receipt is produced which anyone can verify was produced by the zkVM's guest code. No additional information about the code execution (such as, for example, the inputs provided) is revealed by publishing the receipt.

Additional (non-reference) resources for using our zkVM that you may also find helpful, especially if you're new to the RISC Zero zkVM. These include:

  • Our zkVM Tutorial, which walks you through writing your first zkVM project.
  • The cargo risczero tool. It includes a new command which generates code for building and launching a zkVM guest and guidance on where projects most commonly modify host and guest code.
  • The examples, which contains various examples using our zkVM.
  • This clip from our presentation at ZK Hack III gives an overview of the RISC Zero zkVM. Our YouTube channel has many more videos as well.
  • We track zkVM issues with known workarounds using the rust guest workarounds GitHub tag. If you're having problems running your code in the zkVM, you can see if there's a workaround, and if you're using a workaround, you can track when it gets resolved to a permanent solution.
  • And more on the RISC Zero developer website!

Crate Feature Flags

The following feature flags are supported.

Note that in order to use risc0-zkvm in the guest, you must disable the default features by setting default-features = false.

Feature Target(s) Implies Description
client all except rv32im std Enables the client API.
cuda prove, std Enables CUDA GPU acceleration for the prover. Requires CUDA toolkit to be installed.
disable-dev-mode all except rv32im Disables dev mode so that proving and verifying may not be faked. Used to prevent a misplaced RISC0_DEV_MODE from breaking security in production systems.
metal macos prove, std Deprecated - Metal GPU acceleration for the prover is now enabled by default on Apple Silicon.
prove all except rv32im std Enables the prover, incompatible within the zkvm guest.
std all Support for the Rust stdlib.

Dependencies

~8–30MB
~453K SLoC