-
Notifications
You must be signed in to change notification settings - Fork 62
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
More thoughts on 0 bytes #5
Comments
Actually, nevermind. Deployment cost ended up being the same. |
Sorry. Still thinking this through. This might be true. |
I'm ready to add functionality, just generalize the required pattern over the hash as much as possible and I'll add it. I.e, is 2 leading zero bytes + 4 additional random zero bytes better than 4 leading zero bytes and 0 additional random zero bytes? |
I think leading zero bytes are always worth a lot more than random zero bytes. But among the addresses found with n leading zero bytes, it should prefer ones where more mixed in zero bytes are found. Leading Zero Bytes: Weight 20 Reasoning:
|
Wonderful, I'll implement this tomorrow and upload a new release. |
Thanks, I will definitely be using this once it is available :) |
Yeah, sorry for the long delay. Been prioritizing day work, will try to get this done during the week. |
Will you have any time to work on this soon? If not, could you give some guidance. I'm about ready to deploy some contracts and would like to have lots of leading and mixed 0s |
I think my comment goes along the lines with this request - I would like to score for zero-bytes. This is important for gas-optimization purposes (each non-zero byte in Currently, it seems |
So it looks like having 5 leading zero bytes is helpful in reducing deployment costs.
Would it be possible to have a pattern that requires the first 5 bytes to be zero and then adds extra score for more zero bytes anywhere else in the address?
The text was updated successfully, but these errors were encountered: