Crates.io | risc0-zkvm |
lib.rs | risc0-zkvm |
version | 1.1.3 |
source | src |
created_at | 2022-08-08 05:52:30.878411 |
updated_at | 2024-11-09 05:53:00.052632 |
description | RISC Zero zero-knowledge VM |
homepage | https://risczero.com/ |
repository | https://github.com/risc0/risc0/ |
max_upload_size | |
id | 640657 |
size | 4,480,693 |
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:
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 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. |