update readme

This commit is contained in:
MuhtasimTanmoy
2024-11-21 14:24:14 +06:00
committed by tanmoy
parent a0f185bebd
commit 685192fd90
5 changed files with 5 additions and 14 deletions

View File

@@ -1,13 +0,0 @@
# TODO: Separate out run and build, store run logs in prove.log instead of cycles.txt
export RUST_LOG=info
# Rust benchmarks
nth-prime-rust = algos/nth_prime
all:
@echo "Running all benchmarks..."
make run-nth-prime
run-nth-prime:
@echo "Running nth-prime benchmark..."
cd ${nth-prime-rust}/native_sp1/script; SP1_PROVER=network cargo run --release > cycles.txt

View File

@@ -1,5 +1,9 @@
# SP1
## Quickstart
Go to each benchmark folder. Then go to `script` folder. Run.
`cargo run --release -- --prove --n 10`
Two different execution environment.

View File

@@ -19,7 +19,7 @@ pub fn main() {
let n = sp1_zkvm::io::read::<u32>();
// Compute the n'th fibonacci number using a function from the workspace lib crate.
let input = &[5u8; 20000];
let input = &[5u8; 100];
let a = sha2(input);
// Encode the public values of the program.