Skip to content

Commit

Permalink
Consensus client & preprocessor (#12)
Browse files Browse the repository at this point in the history
* custom circuit builder (WIP)

* add per dense/spread contexts & assignment

* enable spread table constraints

* contingent range check

* fix max input bytes constant in sha256 chip

* refactor sha256 chip, uncomment hash2curve

* refactor again, use `thread_pool` instead of ctxs

* refactor step circuit & agrs struct

* add `Eth2CircuitBuilder`

* uncomment Sha256Wide chip

* remove unused features from Sha256Wide config

* add ShaWide thread builder

* sha256Wide assign to region

* uncomment CommitteeUpdateCircuit

* fix ShaBitThreadBuilder

* init

* add beacon client struct

* add committe update circuit args pre-processing

* update `AppCircuit` trait

* add Minimal spec

* fix prover crate

* fixes

* add aggregation prover to CLI

* uncomment tests

* add test with testnet data

* fix sync step args fetch

* fix merkle proofs witnesses

* rename sha256_flex mod

* fix errors

* cargo fix+fmt

* update aggregation circuit artifacts

* merge

* remove local deps
  • Loading branch information
nulltea authored Sep 22, 2023
1 parent 7d246d5 commit 0a851ce
Show file tree
Hide file tree
Showing 40 changed files with 37,548 additions and 567 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,6 @@ params/
*.pk
*.instances
*.proof
*.calldata

consensus-spec-tests
13 changes: 10 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace]
members = ["lightclient-circuits", "eth-types"]
members = ["lightclient-circuits", "prover", "preprocessor", "eth-types"]

# Definition of benchmarks profile to use.
[profile.bench]
Expand Down Expand Up @@ -44,9 +44,16 @@ poseidon = { git = "https://github.com/timoftime/halo2-lib", rev = "03c7baedeae2
snark-verifier = { git = "https://github.com/timoftime/snark-verifier", branch = "timoftime/bump-revm", default-features = false }
snark-verifier-sdk = { git = "https://github.com/timoftime/snark-verifier", branch = "timoftime/bump-revm", default-features = false }


# [patch."https://github.com/timoftime/halo2curves"]
# halo2curves = { path = "../halo2curves" }

[patch."https://github.com/ralexstokes/ssz-rs"]
ssz-rs = { git = "https://github.com/polytope-labs/ssz-rs", branch = "seun/ssz-merkle-multi-proof-phase-1" }
ssz-rs = { git = "https://github.com/polytope-labs/ssz-rs", branch = "main", default-features = false }

[patch."https://github.com/polytope-labs/sync-committee-rs"]
sync-committee-prover = { git = "https://github.com/timoftime/sync-committee-rs", branch = "dev/accept-ssz", features = [
"testnet",
] }
sync-committee-primitives = { git = "https://github.com/timoftime/sync-committee-rs", branch = "dev/accept-ssz", features = [
"testnet",
] }
Loading

0 comments on commit 0a851ce

Please sign in to comment.