Skip to content

tests-zkevm@v21.0.7

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 10 Nov 18:20
4721bbe

This is a new release of projects/zkevm which:

  • Is based on tests@v21.0.2. See its release notes for upstream changes.
  • Specs:
    • Makes NewPayloadRequest and StatelessValidationResult progressive containers and caps versioned_hashes at 4096 entries, to match the Gloas and EIP-8025 consensus specs. The encoding is the same, so only the roots change: new_payload_request_root now matches what the CL computes, and the guest output's root matches the CL PublicInput. (PR #3913)
    • Checks a witness trie node only when a read or write reaches it, or when a deletion collapses its parent branch onto it. A malformed node off the block's path no longer makes the block invalid, though a guest may still check every node up front and reject it. (PR #3934)
    • Rejects an embedded child of 32 bytes or more, and a hash reference to a non-root node shorter than 32 bytes. It also rejects a branch in the account or storage trie that holds a value or whose value slot is a list. (PR #3934)
  • Tests:
    • Updates statelessOutputBytes in the fixtures, since it carries the new new_payload_request_root. (PR #3913)
    • Replaces test_witness_state_rejects_overlength_secured_trie_path with test_witness_state_malformed_nodes.py, which puts each malformed node on a path the block reads or writes, so every guest must reject it. It covers leaf paths that are too long or too short in the account and storage tries, including one a deletion collapses onto, invalid RLP, a branch with one child, an extension pointing to a leaf, a branch holding a value, an oversized embedded leaf and a short branch referenced by hash. (PR #3934)
    • Adds test_witness_state_collapse_onto_extension_skips_its_child, where a storage deletion collapses a branch onto an extension whose child is missing from the witness. Stateless validation must succeed. (PR #3934)