Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
MdTeach committed Jan 30, 2025
1 parent 8ec42b6 commit b63f088
Show file tree
Hide file tree
Showing 10 changed files with 265 additions and 322 deletions.
6 changes: 6 additions & 0 deletions bin/datatool/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,9 @@ Because building the guest code in Docker can be time-consuming, you can generat
```bash
cargo build --bin strata-datatool -F "sp1" --release
```

Additionally, the generated ELF can be exported after building the datatool as specified above:

```bash
strata-datatool genparams --elf-path <ELF-PATH>
```
2 changes: 1 addition & 1 deletion bin/datatool/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ pub(crate) struct SubcParams {
pub(crate) proof_timeout: Option<u32>,

#[argh(option, description = "directory to export the generated ELF")]
pub(crate) elf_path: Option<PathBuf>,
pub(crate) elf_dir: Option<PathBuf>,
}

pub(crate) struct CmdContext {
Expand Down
2 changes: 1 addition & 1 deletion bin/datatool/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ fn exec_genparams(cmd: SubcParams, ctx: &mut CmdContext) -> anyhow::Result<()> {
println!("{params_buf}");
}

if let Some(elf_path) = &cmd.elf_path {
if let Some(elf_path) = &cmd.elf_dir {
export_elf(elf_path)?;
}

Check warning on line 303 in bin/datatool/src/util.rs

View check run for this annotation

Codecov / codecov/patch

bin/datatool/src/util.rs#L301-L303

Added lines #L301 - L303 were not covered by tests

Expand Down
90 changes: 35 additions & 55 deletions provers/sp1/guest-btc-blockspace/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b63f088

Please sign in to comment.