Skip to content

Commit

Permalink
feat: bls12-381 support (#207)
Browse files Browse the repository at this point in the history
* feat: bls12-381 zkey support

* fix: serialization types, move ethereum logic to serialization

* chore: optional byteorder dep

* chore: comments

* fix: wait for witness thread in all cases

* refactor: remove ZVerifyingKey type, remove unused tests

* wip: bls test

* feat: functional bls proof test

* chore: zkey_header comments, tests

* chore: cleanup old comment

* chore: cleanup comments
  • Loading branch information
chancehudson authored Jul 9, 2024
1 parent 2e3c382 commit 5380d75
Show file tree
Hide file tree
Showing 11 changed files with 914 additions and 128 deletions.
62 changes: 39 additions & 23 deletions Cargo.lock

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

6 changes: 5 additions & 1 deletion mopro-ffi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ path = "src/uniffi-bindgen.rs"
default = []

halo2 = ["halo2_proofs", "halo2curves", "serde"]
circom = ["ark-circom", "ark-serialize", "ark-ec", "ark-crypto-primitives", "ark-std", "ark-bn254", "ark-groth16", "ark-relations"]
circom = ["ark-circom", "ark-serialize", "ark-ec", "ark-crypto-primitives", "ark-std", "ark-bn254", "ark-groth16", "ark-relations", "ark-ff", "ark-bls12-381", "num-traits", "byteorder"]

[dependencies]
rust-witness = { git = "https://github.com/vimwitch/rust-witness.git" }
Expand Down Expand Up @@ -54,6 +54,10 @@ ark-groth16 = { version = "=0.4.0", default-features = false, features = [
], optional = true }
ark-relations = { version = "0.4", default-features = false, optional = true }
uuid = { version = "1.9.1", features = ["v4"] }
byteorder = { version = "1.0.0", optional = true }
ark-ff = { version = "0.4.0", optional = true }
ark-bls12-381 = { version = "0.4.0", optional = true }
num-traits = { version = "0.2.0", optional = true }

[build-dependencies]
rust-witness = { git = "https://github.com/vimwitch/rust-witness.git" }
Expand Down
Loading

0 comments on commit 5380d75

Please sign in to comment.