Structs§
- HexMatcher
- Matches start and end hex.
- Left
Exact Right Regex Matcher - Matches start hex and end regex.
- Left
HexMatcher - Matches only start hex.
- Left
Regex Right Exact Matcher - Matches start regex and end hex.
- Regex
Matcher - Matches start and end regex.
- Right
HexMatcher - Matches only end hex.
- Single
Regex Matcher - Matches a single regex.
- Vanity
Args - CLI arguments for
cast wallet vanity
. - Wallet
Data 🔒 - WalletData contains address and private_key information for a wallet.
- Wallets 🔒
- Wallets is a collection of WalletData.
Traits§
- Vanity
Matcher - A trait to match vanity addresses.
Functions§
- create_
matcher - Creates a nonce matcher function, which takes a reference to a GeneratedWallet and returns
whether it found a match or not by using
matcher
. - create_
nonce_ matcher - Creates a nonce matcher function, which takes a reference to a GeneratedWallet and a nonce and
returns whether it found a match or not by using
matcher
. - find_
vanity_ address - Generates random wallets until
matcher
matches the wallet address, returning the wallet. - find_
vanity_ address_ with_ nonce - Generates random wallets until
matcher
matches the contract address created atnonce
, returning the wallet. - generate_
wallet - Generates a random K-256 signing key and derives its Ethereum address.
- parse_
pattern 🔒 - save_
wallet_ 🔒to_ file - Saves the specified
wallet
to a ‘vanity_addresses.json’ file at the givensave_path
. If the file exists, the wallet data is appended to the existing content; otherwise, a new file is created. - wallet_
generator - Returns an infinite parallel iterator which yields a GeneratedWallet.
Type Aliases§
- Generated
Wallet - Type alias for the result of generate_wallet.