mirror of
https://github.com/logos-blockchain/lssa-zkvm-testing.git
synced 2026-01-02 13:23:08 +00:00
Nexus instructions added
This commit is contained in:
parent
8fb52362fc
commit
e4cf01e763
16
nexus/README.md
Normal file
16
nexus/README.md
Normal file
@ -0,0 +1,16 @@
|
||||
# Test run instructions
|
||||
|
||||
Firstly there is requirements
|
||||
|
||||
- [Nexus](https://github.com/nexus-xyz/nexus-zkvm?tab=readme-ov-file#quick-start)
|
||||
|
||||
Next, we assume, that one is in `nexus` folder.
|
||||
|
||||
To prove execution we need to build one of the tests, let`s use [simple_arithmetic_test](./tests/simple_arithmetic_test/) as an example.
|
||||
|
||||
To generate a proof, run the following commands:
|
||||
|
||||
```sh
|
||||
cd simple_arithmetic_test
|
||||
cargo nexus prove
|
||||
```
|
||||
@ -50,5 +50,4 @@ pub fn vec_alloc(n: u32) -> u32 {
|
||||
fn main() {
|
||||
let n = 7;
|
||||
let result = vec_alloc(n);
|
||||
assert_eq!(result, 13);
|
||||
}
|
||||
@ -1,13 +1,5 @@
|
||||
#![cfg_attr(target_arch = "riscv32", no_std, no_main)]
|
||||
|
||||
fn fib(n: u32) -> u32 {
|
||||
match n {
|
||||
0 => 0,
|
||||
1 => 1,
|
||||
_ => fib(n - 1) + fib(n - 2),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn hept(n: u32) -> u32 {
|
||||
|
||||
for i in 0..100 {
|
||||
@ -20,5 +12,4 @@ pub fn hept(n: u32) -> u32 {
|
||||
fn main() {
|
||||
let n = 7;
|
||||
let result = hept(n);
|
||||
assert_eq!(result, 13);
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user