Compare commits

...

46 commits

Author SHA1 Message Date
Han
7df3897532
perf(zisk): drop the software G1 subgroup pre-check before BLS12-381 MSM and pairing (#62) 2026-11-16 09:04:32 +00:00
Ignacio Hagopian
e5837d7c7c
chore: update to tests-zkevm@v21.0.7 and reject malformed witness trie nodes (#61)
The release makes NewPayloadRequest a progressive container with versioned_hashes capped at 4096, which changes its root. It also adds witness tests that the zeth trie decoder failed, since it accepted oversized embedded children and short nodes referenced by hash.
2026-11-11 18:17:24 +00:00
Ignacio Hagopian
cc1fab8c61
chore: update ere to v0.20.0 (#60)
* chore: update ere to v0.20.0

* fix(ci): parse zkvm-interface headers as freestanding in no_std check
2026-11-10 14:28:37 +00:00
figtracer
cbfb97e2a2
fix(ef-tests): bound in-flight cases (#58) 2026-10-23 03:19:29 +01:00
Ignacio Hagopian
534936ff30
chore: update ere to v0.19.5 (#57) 2026-10-23 02:42:05 +01:00
figtracer
9e0fdfb873
docs: add agent guidance (#56) 2026-10-22 18:50:40 +01:00
Derek Cofausper
4eb849a06a
chore: update deps (#55) 2026-10-20 20:16:14 +01:00
Ignacio Hagopian
7be49263a5
chore: update to tests-zkevm@v21.0.6 and reject over-long witness trie paths (#54)
* Update tests-zkevm fixtures to v21.0.6 and validate MPT key lengths

- Bump the execution-spec fixtures and spec links from v21.0.1 to
  v21.0.6, with the new archive checksum.
- Reject trie nodes whose paths do not match the 64-nibble hashed key
  length. `decode_path` rejects paths over 64 nibbles. The new
  `validate_key_len` runs in `RlpTrie::from_prehashed` and rejects
  leaves that end early or late.
- Add EIP-7928 and EIP-8025 tests that fail on upstream bugs to
  `KNOWN_FAILURES`. The EIP-8025 tests omit code from the witness after
  the block wrote the same code, and the guest reads code only from the
  witness.

* Check MPT key lengths while resolving witness nodes

`validate_key_len` walked each state and storage trie a second time
after `resolve_digests` had built it. `resolve_digests_with_key_len`
now tracks the remaining key length in that first walk, so the check
costs one comparison per node.

`from_prehashed_nodes_with_key_len` on `Trie` and `CachedTrie` replaces
`validate_key_len`, and `RlpTrie::from_prehashed` uses it for the state
and storage tries. `from_rlp`, `hydrate_from_rlp` and the orphan
resolver keep the unchecked walk, since their keys have no fixed length.

* test: check key lengths through CachedTrie

Production resolves witness tries through CachedTrie, so test that constructor and drop the Trie variant that only the test used.

* refactor: pass the key length to resolve_digests

Fold resolve_digests_with_key_len into resolve_digests, which takes the optional key length directly.

---------

Co-authored-by: Gustavo Figueiredo <me@figtracer.com>
2026-10-20 13:41:34 +01:00
Derek Cofausper
b85a2bec2f
chore: remove redundant package homepages (#52)
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
2026-10-17 09:11:47 +02:00
figtracer
77293e0349
fix(ci): publish guest tags as pre-releases (#51) 2026-10-06 11:22:37 +01:00
Derek Cofausper
cf384403f3
fix(ci): allow OpenVM to write temporary Cargo Git cache (#50) 2026-10-05 17:59:26 +01:00
Ignacio Hagopian
d80576b4ec
update to tests-zkevm@v21.0.1 and ere v0.18.1 (#48) 2026-10-04 12:20:08 +01:00
Matthias Seitz
afb0570a88
chore(ci): use vendored dtolnay/rust-toolchain (#49) 2026-10-03 12:07:01 +02:00
Derek Cofausper
62ca86801f
chore: bump gh-actions to d5402286 (#47)
Co-authored-by: grandizzy <38490174+grandizzy@users.noreply.github.com>
2026-09-29 07:44:14 +02:00
Derek Cofausper
8045a3e8d1
chore: update gh-actions to ee2960a6 (#46) 2026-09-28 09:11:35 +01:00
Derek Cofausper
923f1b759c
chore(ci): scan GitHub Actions workflows (#45) 2026-09-23 12:32:39 +01:00
Derek Cofausper
6da827b755
chore(ci): update gh-actions pins (#44) 2026-09-23 09:48:46 +01:00
Derek Cofausper
68b22e61b0
chore(ci): protect dependency installs with Aegis (#43)
* chore(ci): protect dependency installs with Aegis

Start pinned runner protection before dependency installation and carry
OIDC permissions through reusable workflows. Preserve existing triggers
and build matrices while securing host-side tool installation paths.

Co-authored-by: Derek Cofausper <256792747+decofe@users.noreply.github.com>

* chore(ci): prefetch locked guest dependencies through Aegis

Co-authored-by: Derek Cofausper <256792747+decofe@users.noreply.github.com>

* fix(ci): fetch guest dependencies before offline compilation

---------

Co-authored-by: grandizzy <38490174+grandizzy@users.noreply.github.com>
Co-authored-by: Gustavo Figueiredo <me@figtracer.com>
2026-09-22 11:54:16 +01:00
Ignacio Hagopian
881516c50c
Update to tests-zkevm@v0.8.4 (#42)
* Update to tests-zkevm@v0.8.4

* refactor: remove obsolete EIP-8037 regression tests from host execution
2026-09-08 21:51:07 +01:00
figtracer
edc6685645
refactor: deduplicate payload declarations (#41) 2026-09-06 18:12:00 +01:00
Han
a134a621ba
feat: update ere to v0.16.2 (#40)
* feat: bump ere to v0.16.2 (rev 8961a4e7ac5c9ca2dc6a2fc848452f23a186b1aa)

* feat: add target-feature=+unaligned-scalar-mem for zisk guest
2026-08-25 09:23:08 +01:00
Ignacio Hagopian
0aa0c19ddb
Upgrade stateless validation to tests-zkevm v0.8.2 (#39)
* update to v0.8.2 spec

* lints

* fix review feedback
2026-08-25 09:02:05 +01:00
gustavo
7c78b90e8d
ci: stabilize and harden checks (#38) 2026-08-19 17:39:35 +01:00
gustavo
d4029ea10c
ci(guest): build release artifacts on demand (#37) 2026-08-19 14:29:08 +01:00
figtracer
d61ab92698
feat(guest): publish Reth stateless validator ELFs (#36)
* feat(stateless): add zkVM crypto provider

* feat: bump reth to rev c5dff62a8804b207659f5d1f30f13e66c3a66d4b for glamsterdam-devnet-7

* feat(guest): add canonical stateless input types

* feat(guest): add Reth stateless validator

* feat(guest): add zkVM entrypoints

* fix(crypto): validate uncompressed public keys

* ci(guest): build and publish zkVM artifacts

* test(guest): add execution-spec fixture coverage

* ci(guest): expand no-std coverage

* fix(openvm): provide critical section symbols

* fix(stateless): preserve host and Glamsterdam behavior

* chore(guest): ignore local build artifacts

* chore(guest): update Reth and ERE toolchains

* fix(stateless): bind public keys to signature parity

* test(guest): execute artifacts before packaging

* ci(guest): harden release provenance

* test(guest): pin known fixture failures

* fix(openvm): use compiler image toolchain

* fix(openvm): initialize guest runtime

* fix(openvm): provide critical section ABI

* build(guest): require locked dependencies

* docs(guest): correct release tag pattern

* build(guest): protect compiler lockfiles

* fix(zisk): reject invalid BLS inputs safely

* fix(stateless): preserve destroyed storage wipes

* ci(guest): execute artifacts on clean runners

* fix(guest): pull pinned smoke server image

* ci(guest): mount artifacts for smoke execution

* fix(guest): normalize smoke artifact path

* fix(guest): consume created-code cache fix

* fix(stateless): enforce storage creation collisions

* test(stateless): require all guest fixtures to pass

* test(stateless): avoid redundant account clone

* fix(guest): pin revm in release workspaces

* chore(guest): park EIP-7610 collision handling

* ci(guest): limit changes to guest coverage

* refactor(guest): trim release integration

* build(guest): refresh release lockfiles

---------

Co-authored-by: han0110 <tinghan0110@gmail.com>
2026-08-18 16:38:01 +01:00
Gustavo Figueiredo
3d2fc174df perf(stateless): avoid eager witness bytecode analysis 2026-07-09 13:55:10 +02:00
Gustavo Figueiredo
e3edc40a2d fix(stateless): keep public key verification 2026-07-08 13:07:42 +02:00
Gustavo Figueiredo
501a44a717 fix(stateless): use consensus signer recovery 2026-07-08 13:07:42 +02:00
Gustavo Figueiredo
35242a93ac perf(stateless): recover sender addresses from signatures 2026-07-08 13:07:42 +02:00
Gustavo Figueiredo
f2d72e8075 Revert "perf(tries): cache decoded witness accounts"
This reverts commit ef679112b6.
2026-07-08 13:07:42 +02:00
Gustavo Figueiredo
bac3a72662 perf(tries): cache decoded witness accounts 2026-07-08 13:07:42 +02:00
Gustavo Figueiredo
bc870ffe3b perf(stateless): recover signer from signatures 2026-07-08 13:07:42 +02:00
Gustavo Figueiredo
f3c90acd69 perf(stateless): reuse recovered block hash 2026-07-08 13:07:42 +02:00
Gustavo Figueiredo
4eccc1ec45 perf(stateless): hash verified public keys directly 2026-07-08 13:07:42 +02:00
Gustavo Figueiredo
c4513bff12 perf(tries): lazily load zeth storage tries 2026-07-08 13:07:42 +02:00
han0110
2236845a84 fix: avoid sorting the ancestor headers and reject if it is not in correct order 2026-07-01 22:53:13 +02:00
han0110
312a9dbc41 feat: add BAL hash and gas limit check 2026-07-01 22:53:13 +02:00
han0110
61e146f234 feat: zeth trie returns error when missing node in witness instead of panicking 2026-07-01 22:53:13 +02:00
han0110
d60030e196 feat: bump reth to v2.3.0 2026-07-01 22:51:51 +02:00
Andrés Ramírez
b10ca5d51e
build: support rv64im zkVM target via lower-atomic pass (#27)
addresses #4
2026-06-01 14:30:00 +01:00
lazovicff
6e55612692
Cargo update (#23) 2026-05-04 12:28:17 +02:00
Andrés Ramírez
0870aa7db4
feat(validation): split InvalidAncestorChain error for better debugging context (#22) 2026-05-04 11:08:50 +01:00
Wolfgang Welz
e5480e71a8
chore: bump reth to latest tagged release (#21)
* chore: bump reth to v2.1.0

Pin all reth-* git deps to the v2.1.0 tag (was a floating rev between
v2.0.0 and v2.1.0). Align revm family with what reth v2.1.0 declares:

  revm                     36.0.0 -> 38.0.0
  revm-bytecode             9.0.0 -> 10.0.0
  revm-database-interface  10.0.0 -> 11.0.0
  revm-state               10.0.0 -> 11.0.0
  reth-primitives-traits    0.2.0 -> 0.3.0

Update call site for the new validate_block_post_execution signature,
which now takes &BlockExecutionResult<R> instead of separate &receipts
and &requests.

Motivation: downstream consumers (e.g. zeth) need to match stateless's
reth version for the dependency graph to unify, and matching a tag is
much easier than matching an unreleased SHA.

* fix(ef-tests): update validate_block_post_execution call

reth v2.1.0 collapsed the separate &receipts and &requests
arguments into a single &BlockExecutionResult<R>. Update the
second call site in blockchain_test that was missed when the
first one was migrated.
2026-04-22 15:43:01 +01:00
Gustavo Figueiredo
0949923d7f chore: add TODO comment for BAL population
Track reth BAL builder integration (paradigmxyz/reth#22881) needed
to populate block_access_list in StatelessValidationOutput.
2026-04-14 09:14:29 +01:00
jsign
69aab06879 tests: add BALs as part of the run output 2026-04-14 08:27:31 +01:00
figtracer
a47f13bc05
chore: bump alloy to 2.0.0 (#19)
Bump alloy crates (consensus, eips, genesis, rpc-types-debug) from 1.8
to 2.0.0, reth dependencies to rev a511362, reth-primitives-traits to
0.2.0, and alloy-trie in zeth-mpt from 0.8 to 0.9.

Adapt zeth-mpt to alloy-trie 0.9 Nibbles API changes.
2026-04-14 09:18:40 +02:00
70 changed files with 18873 additions and 1646 deletions

10
.github/scripts/free-up-disk-space.sh vendored Executable file

3
.gitignore vendored

1
CLAUDE.md Symbolic link

3460
Cargo.lock generated

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

70
scripts/guests/build.sh Executable file

29
scripts/guests/config.sh Executable file

File diff suppressed because one or more lines are too long