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

Compute CREATE address without RLP library #783

Closed
chfast opened this issue Jan 8, 2024 · 4 comments · Fixed by #1055
Closed

Compute CREATE address without RLP library #783

chfast opened this issue Jan 8, 2024 · 4 comments · Fixed by #1055
Assignees
Labels
good first issue Good for newcomers

Comments

@chfast
Copy link
Member

chfast commented Jan 8, 2024

We want to decouple RLP library (mostly used in testing infrastructure and MPT hashing) from the core EVM state modifications. The CREATE address derivation is the only place where RLP is used. For this we only need to implement RLP encoding for uint64.

See the TODO comment at https://github.com/ethereum/evmone/blob/v0.11.0/test/state/host.cpp#L149.

@AbhinavMir
Copy link

AbhinavMir commented Feb 11, 2024

Hi @chfast ! Does the draft PR above look right? I looked at how Aleth used to encode JSON objects and bounced off from there to create a rlp_encode_uint64 function.

@elijahhampton
Copy link
Contributor

Looks like the PR for this wasn't accepted and has gone stale. I can pick this up @chfast

@chfast
Copy link
Member Author

chfast commented Sep 27, 2024

Ok, give it a try. For the clarification: any JSON should not be involved.

chfast added a commit that referenced this issue Oct 17, 2024
Remove Host's dependency on RLP library by re-implementing
`compute_create_address()`.

Closes #783.
chfast added a commit that referenced this issue Oct 17, 2024
Remove Host's dependency on RLP library by re-implementing
`compute_create_address()`.

Closes #783.
@chfast chfast assigned chfast and unassigned elijahhampton Oct 17, 2024
@chfast
Copy link
Member Author

chfast commented Oct 17, 2024

I made a draft for it: #1055.

chfast added a commit that referenced this issue Oct 18, 2024
Remove Host's dependency on RLP library by re-implementing
`compute_create_address()`.

Closes #783.
chfast added a commit that referenced this issue Oct 18, 2024
Remove Host's dependency on RLP library by re-implementing
`compute_create_address()`.

Closes #783.
chfast added a commit that referenced this issue Oct 18, 2024
Remove Host's dependency on RLP library by re-implementing
`compute_create_address()`.

Closes #783.
chfast added a commit that referenced this issue Oct 18, 2024
Remove Host's dependency on RLP library by re-implementing
`compute_create_address()`.

Closes #783.
chfast added a commit that referenced this issue Oct 18, 2024
Remove Host's dependency on RLP library by re-implementing
`compute_create_address()`.

Closes #783.
@chfast chfast closed this as completed in d2b9dc2 Oct 23, 2024
chfast added a commit that referenced this issue Oct 23, 2024
Remove Host's dependency on RLP library by re-implementing
`compute_create_address()`.

Closes #783.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
3 participants