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 c5f2bec
Show file tree
Hide file tree
Showing 11 changed files with 271 additions and 328 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)?;
}

Expand Down
3 changes: 1 addition & 2 deletions provers/sp1/build.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use std::{
collections::{HashMap, HashSet},
env,
fs::{self},
env, fs,
path::{Path, PathBuf},
};

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 c5f2bec

Please sign in to comment.