-
Notifications
You must be signed in to change notification settings - Fork 21.5k
core/types: add extra validation for deposit requests #32669
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
core/types/deposit.go
Outdated
| withdrawalCredRequestOffset = pubkeyRequestOffset + 48 | ||
| amountRequestOffset = withdrawalCredRequestOffset + 32 | ||
| signatureRequestOffset = amountRequestOffset + 8 | ||
| indexRequestOffset = signatureRequestOffset + 96 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd probably revert the name changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bumped! Thx
5b619e0 to
e7e4426
Compare
e7e4426 to
9c9c35f
Compare
Deposit Event ABI Layout (576 bytes)
|
|
I don't know, this adds a lot of dead code to something that WILL NEVER change in order to get tests to pass. |
|
We merged ethereum/execution-spec-tests#2177 in EEST so the tests do pass now. Happy for you guys to close the PR if thats the decision. |
|
We will close this after another round of internal discussion. We do have the length check, so in order to cause this issue, a contract would have to emit incorrect data of correct size. I just find that very unlikely. |
|
The only other component I can think of is if it could affect L2s that fork geth! Thanks |
|
Cómo puedo solucionar mi error la aplicación no me permite entrar una
disculpa fue una falla en mi trabajo
El mar, 7 de oct de 2025, 7:14 a. m., Felix Lange ***@***.***>
escribió:
… Closed #32669 <#32669>.
—
Reply to this email directly, view it on GitHub
<#32669 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BYLNIX7P5UBELE4HXQZDIC33WO4CJAVCNFSM6AAAAACG4HP42SVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMRQGE2DANRRGQZTENQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Description
The current EIP-6110 implementation only validates the total length of deposit event data (576 bytes) but does not validate the internal ABI structure as required by the specification. This causes EEST test failures where invalid deposit event errors are not distinctly caught for the appropriate reason.
Solution
This PR implements the deposit event layout validation as specified in EIP-6110's
is_valid_deposit_event_datafunction, where the function returns False for incorrect validation:Hive
eest/consume-engineFollowing this PR, the failing EIP-6110 tests now pass:
https://hive.ethpandaops.io/#/test/fusaka/1758206019-3d8e1ef2d1c0829ec602a80ba1b23b1d?testnumber=18233