mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-03 13:53:12 +00:00
add big calculation elf
This commit is contained in:
parent
79b9d1f935
commit
00885e6aaa
14
zkvm/test_methods/guest/src/bin/big_calculation.rs
Normal file
14
zkvm/test_methods/guest/src/bin/big_calculation.rs
Normal file
@ -0,0 +1,14 @@
|
||||
use risc0_zkvm::{
|
||||
guest::env,
|
||||
};
|
||||
|
||||
fn main() {
|
||||
let lhs: u128 = env::read();
|
||||
let rhs: u128 = env::read();
|
||||
let mut res = 1;
|
||||
for i in 0..lhs {
|
||||
res *= rhs;
|
||||
res += lhs;
|
||||
}
|
||||
env::commit(&(res));
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user