Skip to content
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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Conversation

somnathb1
Copy link
Contributor

@somnathb1 somnathb1 commented Oct 3, 2024

Ref - ethereum/EIPs#8856
(Tasks board - #12106)

Just change RLP encoding function for deposit requests to a non-RLP flat encoding

@somnathb1 somnathb1 added the pectra The Prague/Electra protocol upgrade label Oct 3, 2024
@somnathb1 somnathb1 added the do-not-merge PR that is in a merge-able state but is waiting for something else to take place before merging label Oct 3, 2024
@somnathb1
Copy link
Contributor Author

somnathb1 commented Oct 10, 2024

Keeping the structure mostly intact for now for deposit request, since it's decoded from the contract events, not directly from the contract itself.

@somnathb1 somnathb1 removed the do-not-merge PR that is in a merge-able state but is waiting for something else to take place before merging label Oct 10, 2024
@@ -70,37 +68,42 @@ type DepositRequestJson struct {

func (d *DepositRequest) RequestType() byte { return DepositRequestType }
func (d *DepositRequest) EncodeRLP(w io.Writer) (err error) {
Copy link
Member

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.

Copy link
Contributor Author

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

Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pectra The Prague/Electra protocol upgrade
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants