Skip to content

feat(cli): add create2-address command #146

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

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

feat(cli): add create2-address command #146

wants to merge 3 commits into from

Conversation

JereSalo
Copy link
Contributor

@JereSalo JereSalo commented Jun 19, 2025

Motivation

  • Add command for computing address with create2

Description

  • Current state: It is mostly finished (some extra arguments could be added but current arguments are enough). The problem is that performance is not the best even after using rayon. There are things to improve in that area...

For now I left the original function of brute_force_create2 and an additional brute_force_create2_rayon. I tried some things to make the latter faster but even after doing some ugly stuff the performance is not top tier.
A command like this takes on average 300ms:
cargo run create2-address --init-code-hash 0x0c591f26891d6443cf08c5be3584c1e6ae10a4c2f07c5c53218741e9755fb9cd --ends beef
With other tool it takes 10-15ms. It's a significant difference.

Closes #123

@JereSalo JereSalo self-assigned this Jun 19, 2025
@JereSalo JereSalo added the enhancement New feature or request label Jun 19, 2025
@JereSalo JereSalo changed the title feat(levm): add create2-address command feat(cli): add create2-address command Jun 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

get-create2-address command
1 participant