Skip to content

Commit a6122cc

Browse files
Merge branch 'main' into morgan/bazel-macos-cleanup
2 parents 7d2605a + a4d15c6 commit a6122cc

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

zirgen/bootstrap/src/main.rs

+2
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,8 @@ impl Bootstrap {
678678
self.copy_file(&src_path, &rsa_path, "modpow65537_4096.blob");
679679
self.copy_file(&src_path, &ec_path, "ec_add_256.blob");
680680
self.copy_file(&src_path, &ec_path, "ec_double_256.blob");
681+
self.copy_file(&src_path, &ec_path, "ec_add_384.blob");
682+
self.copy_file(&src_path, &ec_path, "ec_double_384.blob");
681683
self.copy_file(&src_path, &zkos_bigint_v1compat, "modmul_256.blob");
682684
self.copy_file(&src_path, &zkos_bigint_v1compat, "mul_256.blob");
683685
}

zirgen/circuit/bigint/BUILD.bazel

+16
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ BLOBS = [
5959
"modpow65537_4096",
6060
"ec_double_256",
6161
"ec_add_256",
62+
"ec_double_384",
63+
"ec_add_384",
6264
"extfield_deg2_add_256",
6365
"extfield_deg2_add_384",
6466
"extfield_deg2_mul_256",
@@ -99,6 +101,20 @@ genrule(
99101
cmd = "$(location //zirgen/circuit/bigint:bigint2c) --program=ec_add --bitwidth 256 > $(OUTS)"
100102
)
101103

104+
genrule(
105+
name = "ec_double_384",
106+
outs = ["ec_double_384.blob"],
107+
exec_tools = [":bigint2c"],
108+
cmd = "$(location //zirgen/circuit/bigint:bigint2c) --program=ec_double --bitwidth 384 > $(OUTS)"
109+
)
110+
111+
genrule(
112+
name = "ec_add_384",
113+
outs = ["ec_add_384.blob"],
114+
exec_tools = [":bigint2c"],
115+
cmd = "$(location //zirgen/circuit/bigint:bigint2c) --program=ec_add --bitwidth 384 > $(OUTS)"
116+
)
117+
102118
genrule(
103119
name = "extfield_deg2_add_256",
104120
outs = ["extfield_deg2_add_256.blob"],

0 commit comments

Comments
 (0)