Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 7 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v4

- name: Setup Rust
uses: dtolnay/rust-toolchain@master
Expand All @@ -45,30 +45,14 @@ jobs:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v4

# - name: Download test fixtures
# env:
# GH_TOKEN: ${{ github.token }}
# run: |
# mkdir -p leanSpec/fixtures
# gh run download --repo leanEthereum/leanSpec --name fixtures-prod-scheme --dir leanSpec/fixtures

- name: Checkout leanSpec
uses: actions/checkout@v6
with:
repository: leanEthereum/leanSpec
ref: 050fa4a18881d54d7dc07601fe59e34eb20b9630
path: leanSpec

- name: Install uv
uses: astral-sh/setup-uv@v7

- name: Generate test fixtures
working-directory: leanSpec
- name: Download test fixtures
env:
GH_TOKEN: ${{ github.token }}
run: |
uv sync
uv run fill --fork=devnet --clean -n auto
mkdir -p leanSpec/fixtures
gh run download --repo leanEthereum/leanSpec --name fixtures-prod-scheme --dir leanSpec/fixtures

- name: Setup Rust
uses: dtolnay/rust-toolchain@master
Expand Down
134 changes: 74 additions & 60 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ clap = { version = "4.3", features = ["derive", "env"] }
ethereum-types = { version = "0.15.1", features = ["serialize"] }

# XMSS signatures
leansig = { git = "https://github.com/leanEthereum/leansig.git", rev = "f10dcbe" }
leansig = { git = "https://github.com/leanEthereum/leansig.git", rev = "ae12a5feb25d917c42b6466444ebd56ec115a629" }

# SSZ deps
# TODO: roll up our own implementation
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ test: ## 🧪 Run all tests, then forkchoice tests with skip-signature-verificat
docker-build: ## 🐳 Build the Docker image
docker build -t ghcr.io/lambdaclass/ethlambda:local .

LEAN_SPEC_COMMIT_HASH:=050fa4a18881d54d7dc07601fe59e34eb20b9630
LEAN_SPEC_COMMIT_HASH:=fbbacbea4545be870e25e3c00a90fc69e019c5bb

leanSpec:
git clone https://github.com/leanEthereum/leanSpec.git --single-branch
cd leanSpec && git checkout $(LEAN_SPEC_COMMIT_HASH)

leanSpec/fixtures: leanSpec
cd leanSpec && uv run fill --fork devnet -o fixtures #--scheme=prod
cd leanSpec && uv run fill --fork devnet --scheme=prod -o fixtures

# lean-quickstart:
# git clone https://github.com/blockblaz/lean-quickstart.git --depth 1 --single-branch
Expand Down
5 changes: 5 additions & 0 deletions crates/blockchain/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,8 @@ name = "forkchoice_spectests"
path = "tests/forkchoice_spectests.rs"
harness = false
required-features = ["skip-signature-verification"]

[[test]]
name = "signature_spectests"
path = "tests/signature_spectests.rs"
harness = false
Loading