Skip to content

Commit

Permalink
bigint bootstrap embeds zipped bibc files along with zkrs
Browse files Browse the repository at this point in the history
  • Loading branch information
mars-risc0 committed Oct 16, 2024
1 parent 55adcd8 commit d058ea4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions zirgen/bootstrap/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ const RECURSION_ZKR_ZIP: &str = "recursion_zkr.zip";

const BIGINT_OUTPUTS: &[&str] = &["bigint.rs.inc"];
const BIGINT_ZKR_ZIP: &str = "bigint_zkr.zip";
const BIGINT_BIBC_ZIP: &str = "bigint_bibc.zip";

const ZIRGEN_RUST_OUTPUTS: &[&str] = &[
"defs.rs.inc",
Expand Down Expand Up @@ -330,6 +331,7 @@ impl Args {
let src_path = bazel_bin.join("zirgen/circuit/bigint");

copy_file(&src_path, &out, BIGINT_ZKR_ZIP);
copy_file(&src_path, &out, BIGINT_BIBC_ZIP);
copy_group(
circuit,
&src_path,
Expand Down
1 change: 1 addition & 0 deletions zirgen/circuit/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ filegroup(
name = "circuit",
srcs = [
"//zirgen/circuit/bigint:bigint_zkr",
"//zirgen/circuit/bigint:bigint_bibc",
"//zirgen/circuit/bigint:gen_bigint",
"//zirgen/circuit/fib",
"//zirgen/circuit/keccak",
Expand Down
5 changes: 5 additions & 0 deletions zirgen/circuit/bigint/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,8 @@ pkg_zip(
name = "bigint_zkr",
srcs = [x + ".zkr" for x in ZKRS],
)

pkg_zip(
name = "bigint_bibc",
srcs = [x + ".bibc" for x in ZKRS],
)

0 comments on commit d058ea4

Please sign in to comment.