Skip to content

Commit

Permalink
Update EIPS/eip-4788.md
Browse files Browse the repository at this point in the history
Co-authored-by: Danny Ryan <dannyjryan@gmail.com>
  • Loading branch information
ralexstokes and djrtwo committed Jun 16, 2023
1 parent 4c6e3cb commit 5c16f91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EIPS/eip-4788.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ The first ring buffer only tracks `HISTORICAL_ROOTS_LENGTH` worth of roots and s
However, this design opens the precompile to an attack where a skipped slot that has the same value modulo the ring buffer length would return an old root value,
rather than the most recent one.

To nullify this attack, this EIP keeps track of the pair of data `(parent_beacon_block_root, timestamp)` for each index into the
To nullify this attack while retaining a fixed memory footprint, this EIP keeps track of the pair of data `(parent_beacon_block_root, timestamp)` for each index into the
ring buffer and verifies the timestamp matches the one originally used to write the root data when being read. Given the fixed size of storage slots (only 32 bytes), the requirement
to store a pair of values necessitates two ring buffers, rather than just one.

Expand Down

0 comments on commit 5c16f91

Please sign in to comment.