witnet-vanity
A simple CLI tool to generate Witnet vanity addresses, i.e. starting with wit
or twit
.
Optionally, other prefixes can be configured by using the CLI option hrp
.
Similar to a vanity license plate, a vanity cryptocurrency address starts with a specific pattern.
Generating such an addresses requires a significant amount of work as they are found by generating random Secp256k1
keypairs
and checking if the derived addresses follow the requested patterns. Therefore, the longer the pattern the harder it is to found a match.
I just thought of something. Eventually there'll be some interest in brute force scanning bitcoin addresses to find one with the first few characters customized to your name, kind of like getting a phone number that spells out something. Just by chance I have my initials.
— Satoshi Nakamoto in an email to Hal Finney in 2009
Witnet vanity addresses are are inspired in the BIP 0173 and they follow the Bech32 format.
However, in Witnet SHA256
is used in order to derived addresses from Secp256k1
public keys.
Usage
The CLI tool provides the following options:
<vanity-string> Vanity
)
Example
In the following example, an address with prefix 'm00n':
)
The tool outputs:
- private key bytes
- private key in
xprv
format (as it could be used to imported in witnet-rust node) - address in bech32 format
License
witnet-vanity
is published under the MIT license.