-
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.
* Script to download spec tests * rip test-utils from zipline * Update toolchain and alsoimport zipline * can read tests * TODO: Remove the logic w.r.t. execution because altair doesnt have it * Remove eth1 execution checks * Some tests work! * prints * Capella works * cleanup * Point to remote zipline * spec ttest full prover * k=22 for evm * Convert zipline LightClientHeader to ours * fix tests * clippy * fix import * allow pull from sygmaprotocol/zipline private repo in gh actions: * fixes
- Loading branch information
Showing
16 changed files
with
549 additions
and
46 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 |
---|---|---|
|
@@ -19,6 +19,10 @@ jobs: | |
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
steps: | ||
- name: Give GitHub Actions access to sygmaprotocol/zipline | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.SYGMA_REPO_PULL_KEY }} | ||
- uses: actions/checkout@v3 | ||
- name: Install latest nightly-2022-10-28 | ||
uses: dtolnay/rust-toolchain@stable | ||
|
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 |
---|---|---|
@@ -1,15 +1,36 @@ | ||
test: | ||
cargo test --workspace | ||
|
||
fmt: | ||
cargo fmt --all | ||
|
||
check: | ||
cargo check --all | ||
|
||
lint: fmt | ||
cargo clippy --all-targets --all-features --workspace | ||
|
||
setup-circuits: | ||
cargo run -r -- sync-step -o artifacts -k 22 | ||
cargo run -r -- committee-update -o artifacts -k 18 | ||
|
||
gen-step-evm-verifier: | ||
cargo run -r -- sync-step -c ./lightclient-circuits/config/sync_step.json -o evm-verifier ./contracts/snark-verifiers/sync_step.yul | ||
|
||
gen-rotation-evm-verifier: | ||
cargo run -r -- aggregation -c ./lightclient-circuits/config/aggregation.json --app-pk-path ./build/committee_update.pkey --app-config-path ./lightclient-circuits/config/committee_update.json -i ./rotation-snark -o evm-verifier ./contracts/snark-verifiers/committee_update_compressed.yul | ||
|
||
# downloads spec tests and copies them to the right locations. | ||
download-spec-tests: clean-spec-tests | ||
#!/usr/bin/env bash | ||
if [[ ! -d 'consensus-spec-tests' ]]; then | ||
echo "Downloading test data." | ||
scripts/download_consensus_specs.sh | ||
fi | ||
# deletes all the downloaded spec tests | ||
clean-spec-tests: | ||
echo "Cleaning up downloaded tests" | ||
rm -rf *.profraw | ||
rm -rf *.tar.gz.1 | ||
rm -rf consensus-spec-tests |
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 |
---|---|---|
|
@@ -60,7 +60,11 @@ rayon = "1.7.0" | |
ark-std = { version = "0.4.0", features = ["print-trace"] } | ||
|
||
poseidon_native = { git = "https://github.com/axiom-crypto/halo2.git", branch = "axiom/dev", package = "poseidon" } | ||
# [dev-dependencies] | ||
[dev-dependencies] | ||
rstest = "0.18.2" | ||
test-utils = { git = "ssh://[email protected]/sygmaprotocol/Zipline.git", rev = "27e8a01" } | ||
ethereum-consensus-types = { git = "ssh://[email protected]/sygmaprotocol/Zipline.git", rev = "27e8a01" } | ||
light-client-verifier = { git = "ssh://[email protected]/sygmaprotocol/Zipline.git", rev = "27e8a01" } | ||
|
||
[features] | ||
default = [] |
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
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.