-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* WIP * update version in circuits crate * fix step circuit * fix sha wide chip gate * fix prover * fix proofgen * fix instance gen & refactor * fix prover rpc * fix some tests * switch to remote deps * rename circuit files * refactor * rename circuit files back (to merge main) * post merge fixes * fixes * fmt * wip * remove redundant * fix endianness * remove redundant tests * cargo fix + fmt * rename config files * fix * cargo fmt * switch to https://github.com/ChainSafe/ethereum-consensus-types (#35) * CLI wip * add requirements to readme * simplify cli * fix CI tests * fix paths * fmt + fix
- Loading branch information
Showing
22 changed files
with
557 additions
and
673 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
[workspace] | ||
members = ["lightclient-circuits", "prover", "preprocessor", "eth-types", "contract-tests", "test-utils", "contracts"] | ||
members = [ | ||
"lightclient-circuits", | ||
"prover", | ||
"preprocessor", | ||
"eth-types", | ||
"contract-tests", | ||
"test-utils", | ||
"contracts", | ||
] | ||
|
||
resolver = "2" | ||
|
||
|
@@ -36,7 +44,7 @@ preprocessor = { path = "preprocessor" } | |
halo2-base = { git = "https://github.com/axiom-crypto/halo2-lib", branch = "community-edition", default-features = false, features = [ | ||
"halo2-pse", | ||
"display", | ||
"jemallocator" | ||
"jemallocator", | ||
] } | ||
halo2-ecc = { git = "https://github.com/axiom-crypto/halo2-lib", branch = "community-edition", default-features = false } | ||
zkevm-hashes = { git = "https://github.com/axiom-crypto/halo2-lib", branch = "community-edition", default-features = false } | ||
|
@@ -60,10 +68,7 @@ snark-verifier-sdk = { git = "https://github.com/axiom-crypto/snark-verifier.git | |
halo2_solidity_verifier = { git = "https://github.com/privacy-scaling-explorations/halo2-solidity-verifier", branch = "ac/initial-verifier-PR" } | ||
|
||
# ethereum types | ||
ethereum-consensus-types = { git = "ssh://[email protected]/sygmaprotocol/Zipline.git", rev = "5ecf28d24690862814a7ebc5385c7e5c2eeb6e3d" } | ||
zipline-test-utils = { package = "test-utils", git = "ssh://[email protected]/sygmaprotocol/Zipline.git", rev = "5ecf28d24690862814a7ebc5385c7e5c2eeb6e3d" } | ||
zipline-cryptography = { package = "cryptography", git = "ssh://[email protected]/sygmaprotocol/Zipline.git", rev = "5ecf28d24690862814a7ebc5385c7e5c2eeb6e3d" } | ||
light-client-verifier = { git = "ssh://[email protected]/sygmaprotocol/Zipline.git", rev = "5ecf28d24690862814a7ebc5385c7e5c2eeb6e3d" } | ||
ethereum-consensus-types = { git = "https://github.com/ChainSafe/ethereum-consensus-types", branch = "capella" } | ||
beacon-api-client = { git = "https://github.com/ralexstokes/ethereum-consensus.git", rev = "f3bff52e9c43866f231ec40c8ab0e34125a8957f" } | ||
ssz_rs = "0.9" | ||
|
||
|
@@ -84,19 +89,19 @@ log = "0.4.14" | |
hex = "0.4" | ||
|
||
[patch.crates-io] | ||
halo2curves = { git = "https://github.com/timoftime/halo2curves", package = "halo2curves-axiom", rev = "f3bb3f5a7d3a8ca806368f185c112283a73a94cb" } | ||
halo2curves = { git = "https://github.com/timoftime/halo2curves", package = "halo2curves-axiom", rev = "f3bb3f5a7d3a8ca806368f185c112283a73a94cb" } | ||
ssz_rs = { git = "https://github.com/ralexstokes/ssz-rs", rev = "5f1ec833718efa07bbbff427ab28a1eeaa706164" } | ||
|
||
|
||
[patch."https://github.com/axiom-crypto/halo2-lib"] | ||
halo2-base = { git = "https://github.com/timoftime/halo2-lib", branch = "feat/zkevm-sha256-builder", default-features = false, features = [ | ||
"halo2-pse", | ||
"display", | ||
"jemallocator" | ||
"jemallocator", | ||
] } | ||
halo2-ecc = { git = "https://github.com/timoftime/halo2-lib", branch = "feat/zkevm-sha256-builder", default-features = false, features = [ | ||
"halo2-pse", | ||
"jemallocator" | ||
"jemallocator", | ||
] } | ||
zkevm-hashes = { git = "https://github.com/timoftime/halo2-lib", branch = "feat/zkevm-sha256-builder", default-features = false } | ||
# halo2-base = { path = "../halo2-lib/halo2-base", default-features = false, features = [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"params": { | ||
"k": 18, | ||
"num_advice_per_phase": [ | ||
12 | ||
], | ||
"num_fixed": 1, | ||
"num_lookup_advice_per_phase": [ | ||
1, | ||
0, | ||
0 | ||
], | ||
"lookup_bits": 8, | ||
"num_instance_columns": 1 | ||
}, | ||
"break_points": [ | ||
[ | ||
262134, | ||
262132, | ||
262134, | ||
262132, | ||
262133, | ||
262132, | ||
262132, | ||
262133, | ||
262132, | ||
262134, | ||
262133 | ||
] | ||
] | ||
} |
12 changes: 12 additions & 0 deletions
12
lightclient-circuits/config/committee_update_verifier_testnet.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"params": { | ||
"degree": 25, | ||
"num_advice": 1, | ||
"num_lookup_advice": 1, | ||
"num_fixed": 1, | ||
"lookup_bits": 8 | ||
}, | ||
"break_points": [ | ||
[] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"params": { | ||
"k": 20, | ||
"num_advice_per_phase": [ | ||
21 | ||
], | ||
"num_fixed": 1, | ||
"num_lookup_advice_per_phase": [ | ||
3, | ||
0, | ||
0 | ||
], | ||
"lookup_bits": 8, | ||
"num_instance_columns": 1 | ||
}, | ||
"break_points": [ | ||
[ | ||
1048565, | ||
1048564, | ||
1048566, | ||
1048565, | ||
1048565, | ||
1048566, | ||
1048566, | ||
1048566, | ||
1048564, | ||
1048565, | ||
1048566, | ||
1048564, | ||
1048566, | ||
1048566, | ||
1048564, | ||
1048564, | ||
1048566, | ||
1048564, | ||
1048566, | ||
1048566 | ||
] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"params": { | ||
"k": 22, | ||
"num_advice_per_phase": [ | ||
6 | ||
], | ||
"num_fixed": 1, | ||
"num_lookup_advice_per_phase": [ | ||
1, | ||
0, | ||
0 | ||
], | ||
"lookup_bits": 8, | ||
"num_instance_columns": 1 | ||
}, | ||
"break_points": [ | ||
[ | ||
4194292, | ||
4194294, | ||
4194292, | ||
4194293, | ||
4194293 | ||
] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.