Introduction
Hi, I'm cardene, a software engineer and technical writer focused on blockchain and AI.
I've also authored Japanese technical books on specification-driven development with LLMs and decentralized application (DApp) development.
I also build and publish a variety of tools, libraries, and open-source projects.
This article examines EIP-7736, which proposes introducing epoch tracking to Verkle tree extension nodes, allowing old state data to expire and be removed locally, then restored with a proof when needed.
This article translates, summarizes, and supplements the material linked below.
I have also covered other EIPs.
Overview
EIP-7736 introduces an update epoch for each Verkle tree extension node, which groups keys sharing a common prefix.
An epoch represents a period of time. When an extension node expires, the client can remove the expired data associated with that node and its suffix nodes while retaining the necessary commitment information.
When access to expired state is required again, a new transaction type supplies the data needed to verify a Verkle commitment. The extension and suffix nodes are restored, and the epoch counter associated with them is updated.
Motivation
Earlier state-expiry proposals tend to be complex because they require fundamental changes to Ethereum, such as expanding the address space or introducing multiple tree layers.
EIP-7736 instead targets leaf-level state data while preserving the remaining tree structure. Its objective is to remove parts of the stored state efficiently without unnecessarily disrupting users and developers.
The approach is comparatively simple and minimizes structural changes by restricting expiry to the relevant data.
Specification
Constants
The specification defines constants controlling epoch management and resurrection transactions.
FORK_TIME, the fork activation time, is to be determined later. EPOCH_LENGTH is approximately six months (15,778,800 seconds).
INITIAL_EPOCH_COUNTER, the epoch number immediately before the fork, is initialized to 0. NUM_ACTIVE_EPOCHS, the number of active epochs retained, is set to 2.
The dedicated resurrection transaction type identifier, RESURRECT_TX_TYPE, is also to be determined.
These constants control epoch progression, expiry checks, and restoration.
Changes to the Verkle Tree
An integer variable named current_epoch is added to the tree and initialized to INITIAL_EPOCH_COUNTER before the fork.
Extension nodes receive a new last_epoch field recording the epoch in which they were most recently initialized or updated.
The extension_and_suffix_tree function incorporates last_epoch into the commitment alongside the existing stem and values, binding the epoch information to the tree commitment.
When reading or writing data, the implementation checks that the current epoch is less than last_epoch + NUM_ACTIVE_EPOCHS. Access reverts when the condition is not satisfied.
A successful write updates the extension node's last_epoch to current_epoch, extending its active period.
Epoch Checks and Expiry
At the beginning of block processing, the implementation executes check_epoch_end. If the block timestamp is at least FORK_TIME + current_epoch × EPOCH_LENGTH, the current epoch is incremented according to the proposal.
The schedule_expiry function schedules the client-side removal of expired data associated with extension nodes from current_epoch − NUM_ACTIVE_EPOCHS, preserving their keepsakes (stem and commitment C).
Actual removal is expected to occur after the block has been finalized.
What Is a Keepsake?
A keepsake is the information retained by a client so an expired extension node and its suffix nodes can later be restored. It consists of the stem and commitment C.
stem
The stem is a 31-byte value representing the common key prefix associated with an extension node. It identifies where the corresponding subtree belongs within the Verkle tree.
Retaining the stem allows the client to identify the appropriate position when restoring expired data.
Commitment C
Commitment C is the commitment calculated by the extension-and-suffix-tree function (written as extension_and_suffixtree in the original explanation).
Two subtree commitments, C1 and C2, are derived from the suffix values and combined with the stem and last_epoch to calculate the final commitment.
Retaining C allows the client to verify that data submitted in a resurrection transaction corresponds to the original committed node.
Resurrection Transactions
The transaction type identified by RESURRECT_TX_TYPE restores expired nodes.
Its SSZ-encoded payload contains a vector of subtree data, including the stem, last_epoch, and values.
During validation, the resurrection gas cost is calculated through resurrect_gas_cost, using the access-cost approach associated with EIP-4762 and accounting for the necessary branches and chunk modifications.
The validation logic first deserializes the SSZ payload and calls validate_subtree for each subtree.
The client compares the stored keepsake commitment with the commitment recalculated from the submitted stem, values, and last_epoch. If they match, the extension and suffix nodes are recommitted using the new current_epoch.
Finally, tree.resurrect_subtree restores the subtree and completes the operation if validation succeeds.
What Is SSZ?
SSZ (SimpleSerialize) is the serialization scheme used in Ethereum's consensus layer. It is designed to encode and decode data efficiently and supports the Beacon Chain's protocol data structures.
SSZ is designed to:
- Efficiently process large quantities of state data exchanged between nodes.
- Support Merkleization, making it possible to verify portions of structured data and process partial representations efficiently.
Data Types
SSZ distinguishes basic types, such as unsigned integers and Booleans, from composite types, such as vectors, lists, and containers. Fixed-length byte sequences have predictable serialized sizes, while containers can group multiple fixed-size and variable-size fields.
Serialization Rules
Basic integer values are encoded using little-endian byte order. In containers with variable-size fields, the fixed portion contains the relevant values and offsets, and the variable-size data follows it.
This arrangement allows field positions to be determined efficiently during decoding.
Merkleization
SSZ also defines hash-tree-root computation. Basic values are packed into 32-byte chunks, and composite structures are Merkleized according to their types.
This allows proofs about particular fields to be constructed and verified without requiring the entire object. Merkleization follows the SSZ type structure rather than simply dividing every serialized object into chunks.
Uses in Ethereum
Beacon Chain data structures, including blocks and state information, are encoded using SSZ. This provides consistent binary representations across nodes.
Historical sharding designs also envisaged using SSZ for efficient communication and verification of segmented data.
Additional Notes
Compared with earlier state-expiry proposals, this approach emphasizes simplicity.
It does not require a larger address space or a separate tree for each epoch. Instead, it removes expired data while preserving one tree structure.
The intended target is cold state data, while actively refreshed data remains available. Restoration can reuse the original subtree data and its retained commitment, making the proof mechanism relatively simple and its gas costs explicit.
Epoch-counter updates occur only at epoch transitions, so their cost is amortized over the epoch.
Compatibility
EIP-7736 is designed to minimize changes to the existing Verkle tree specification.
The fourth evaluation point defined by EIP-6800 defaults to 0, matching the initial epoch counter. This allows existing commitments to retain their initial representation.
After activation, updated clients incorporate epoch tracking into their implementation. Compatibility of initial commitments should not be interpreted as meaning that unupgraded clients can follow new consensus rules without modification.
See the following article for EIP-6800.
[EIP-6800] Reducing Proof Sizes with Verkle Trees
Citation
Guillaume Ballet (@gballet), Wei Han Ng (@weiihann), "EIP-7736: Leaf-level state expiry in verkle trees [DRAFT]," Ethereum Improvement Proposals, no. 7736, July 2024. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-7736.
Conclusion
EIP-7736 proposes epoch-based expiry of Verkle tree leaf-level state, with a mechanism for restoring expired data through commitment verification.
If you have questions, feel free to contact me on Twitter.
I also publish articles on the following platforms.



