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

Non-deterministic mining or multiple results #12

Closed
wschwab opened this issue Dec 4, 2023 · 2 comments
Closed

Non-deterministic mining or multiple results #12

wschwab opened this issue Dec 4, 2023 · 2 comments

Comments

@wschwab
Copy link

wschwab commented Dec 4, 2023

Hi!

I have what might be a non-standard use for the miner. There's an unverified contract that I've been trying to fully reproduce the source code of, and while most of the function selectors in it appear in the public databases, there are two that don't. I can guess what the main keyword of the function name is, but haven't figured out exactly how to spin it into the specific selector.

The thing is, this project as-is will turn out a deterministic selector afaict - it'll always produce the same function name to get to the selector. I'm not too convinced that the one that I'm getting is the right one. (No, I don't think the authors appended specifically 4945026298 to the function's name.) I'm hoping maybe there's a way to either ask for multiple results (which might also be useful for minoooors so they can pick the one that is the most aesthetically pleasing to them or something), or have a switch to add some kind of salt to make results non-deterministic. Would either of those be possible?

Cheers!

@Vectorized
Copy link
Owner

Ah, unfortunately brute forcing a English selector is a much more difficult problem.

A big part of the performance comes from the optimized uint32 to string workflow.

@wschwab
Copy link
Author

wschwab commented Dec 7, 2023

gotcha

I don't see much of a point in keeping this one open then, so I'll close it - feel free to reopen if you think there's something useful here

@wschwab wschwab closed this as completed Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants