-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use two fast proofs and a compressed proof into example
- Loading branch information
Showing
2 changed files
with
19 additions
and
25 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,13 +1,9 @@ | ||
use minicbor::Decoder; | ||
use mugraph_core::types::Operation; | ||
#![no_std] | ||
|
||
use mugraph_core_programs_guest::verify; | ||
use risc0_zkvm::guest::env; | ||
|
||
fn main() { | ||
let mut buf = [0u8; size_of::<Operation>()]; | ||
env::read_slice(&mut buf); | ||
let mut decoder = Decoder::new(&buf); | ||
let op = decoder.decode().unwrap(); | ||
|
||
let op = env::read(); | ||
verify(&op).unwrap(); | ||
} |
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