mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-03 05:43:08 +00:00
summation test method
This commit is contained in:
parent
6bfd2ae46f
commit
fba18bc941
9
zkvm/test_methods/guest/src/bin/summation.rs
Normal file
9
zkvm/test_methods/guest/src/bin/summation.rs
Normal file
@ -0,0 +1,9 @@
|
||||
use risc0_zkvm::{
|
||||
guest::env,
|
||||
};
|
||||
|
||||
fn main() {
|
||||
let data: u64 = env::read();
|
||||
let data_2: u64 = env::read();
|
||||
env::commit(&(data + data_2));
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user