-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
types: Update RLP encoding of EIP-6110 deposit reqs #12206
base: main
Are you sure you want to change the base?
Conversation
Keeping the structure mostly intact for now for deposit request, since it's decoded from the contract events, not directly from the contract itself. |
@@ -70,37 +68,42 @@ type DepositRequestJson struct { | |||
|
|||
func (d *DepositRequest) RequestType() byte { return DepositRequestType } | |||
func (d *DepositRequest) EncodeRLP(w io.Writer) (err error) { |
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.
EncodeRLP
/DecodeRLP
are no longer accurate because it's not RLP anymore.
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.
Yes, that's right. It was just following suite till now anyways and never was the full RLP encoding. This will be removed in subsequent PRs
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.
Furthermore, the RLP encoding of the flat version would be almost what it is here, and would still work with Engine API and block storage, hence leaving it for this PR.
Ref - ethereum/EIPs#8856
(Tasks board - #12106)
Just change RLP encoding function for deposit requests to a non-RLP flat encoding