Evaluate tracking historical L1 block attributes #230
Replies: 2 comments
-
Should be feasible. Some questions:
|
Beta Was this translation helpful? Give feedback.
-
Note that after The Merge, we'll have L1 beacon-state-root and beacon-block-root accumulators. Not directly accessible in EVM yet though, that will have to wait till the next L1 upgrade. With these, you can get the authenticated root with an EVM opcode, and then do a binary merkle-proof (SSZ) through the whole state/history. Navigate to a historical batch, then into a block, then into an execution payload, and you'll get historical state-roots (history starting at the Merge, EVM opcode only available the next upgrade after). Alternatively, we could build our own state-root accumulator (and very efficiently!):
Then users can supply a 1024 byte proof ( Above solutions would help authenticate the L1 data, but not worth it if we want to store it in the L2 state and directly provide it (avoid unbound storage with accumulator vs improve UX by storing it) |
Beta Was this translation helpful? Give feedback.
-
A second feature (after #110) requested here, is to make historical L1 Block attributes available.
This issue is for tracking purposes. Brief comments are welcome below, for long form discussions, please open a Discussion and link back to this issue.
Beta Was this translation helpful? Give feedback.
All reactions