Skip to content

Commit

Permalink
docs: README
Browse files Browse the repository at this point in the history
  • Loading branch information
ratankaliani committed Jul 16, 2024
1 parent 882b552 commit 1ed4f01
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,13 @@ Standalone repo to use Kona & SP1 to verify Optimism blocks.
```bash
just run [l2_block_num]
```

## Run the Kona SP1 program from CLI

Supply the L1 head, L2 output root, L2 claim, L2 claim block number, and chain ID.

```rust
cd zkvm-host

cargo run --release -- --l1-head bb3c26e67fd8acb1a2baa15cd9affc57347f8549775657537d2f2ae359384ba4 --l2-output-root 91c0ff7cdc5b59ff251b1c137b1f46c4c27e2b9f2ab17bb3b31c63d2f792a0a0 --l2-claim bfbec731f443c09bbfdcef53358458644ac2cbe1c5f68e53ad38599a52d65b5b --l2-claim-block 121866428 --chain-id 10
```
1 change: 0 additions & 1 deletion zkvm-host/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ fn main() {

let args = Args::parse();

// TODO: Move this to CLI so we can pass same values to both calls from the justfile.
let l1_head = B256::from_str(&args.l1_head).unwrap();
let l2_output_root = B256::from_str(&args.l2_output_root).unwrap();
let l2_claim = B256::from_str(&args.l2_claim).unwrap();
Expand Down

0 comments on commit 1ed4f01

Please sign in to comment.