stellar-vanity-address-generator
stellar-vanity-address-generator copied to clipboard
Implement Improvement Suggestions
trafficstars
Johansten on Keybase had some good suggestions for improving the speed here:
Gotcha.. Quick thoughts:
- ~~You don't need to randomize more than once. The first thing that ed25519 does with the seed anyway is run it through a hash. You can just += 1 for all the following seeds.~~
- ~~You don't need to deserialize the privkey until you know the pubkey was a match~~
- You don't need to do the match in base32, convert your needle to binary instead and match it that way. You probably need a mask first, since you might end up with bitstrings w/ lengths that aren't multiples of eight.
- ~~In #3, you don't need to calculate the checksum unless you have a partial match already~~
Another recommendation from johansten: checkout PlasmaPower/nano-vanity and webmaster128/lisk-vanity
Finished 2 with #17
Finished 1 and 4 with #24