-
Notifications
You must be signed in to change notification settings - Fork 13
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
Add EXTCODEHASH witnes information to resolve Empty() #420
base: kaustinen-with-shapella
Are you sure you want to change the base?
Conversation
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
codehashgas := evm.Accesses.TouchVersion(address[:], false) | ||
codehashgas += evm.Accesses.TouchBalance(address[:], false) | ||
codehashgas += evm.Accesses.TouchNonce(address[:], false) |
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.
New fields to resolve Empty(...)
in witness.
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.
The spec is quite clear that only the code hash should be touched. Which makes sense. The better approach would be to only check the code hash instead of the whole account. If that can't be done, then we would need a spec change. But we can't merge this as is.
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.
lgtm
EXTCODEHASH
instruction execution does an.Empty(address)
check to early return a zero. ThisEmpty(...)
implies adding to the witness the nonce and balance.Note: I added the version too to be coherent with the current status quo