-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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 +1,31 @@ | ||
# risc0-verifier | ||
|
||
A verifier for [RISC-Zero](https://github.com/risc0/risc0) STARK proofs. This crate | ||
|
||
This crate provides a way for deserializing the proof and the verification key (aka image id) and a function to check if the proof is correct: | ||
|
||
```rust | ||
use risc0_verifier::{verify, ProofRawData}; | ||
|
||
let (proof_raw_data, image_id_data): (ProofRawData, [u32; 8]) = load_data(&path); | ||
|
||
assert!(verify(proof_raw_data, image_id_data.into()).is_ok()); | ||
``` | ||
|
||
## Develop | ||
|
||
This project uses [`cargo-make`](https://github.com/sagiegurari/cargo-make) to define | ||
tasks and checks. Install this tool simply by `cargo install cargo-make` and run | ||
|
||
```sh | ||
cargo make ci | ||
``` | ||
|
||
to run all CI's steps. You can also use `makers ci` and bypass `cargo` wrapper. | ||
|
||
Another useful defined task is `coverage` that executes tests and compute code | ||
coverage file `lcov.info`. | ||
|
||
## License | ||
|
||
These crates are released under the [APACHE 2.0 license](LICENSE-APACHE2) |