Vanity Addresses: Search Costs, Key Risks and Recognition Limits
How a desired prefix is found, why expected waiting time is not a deadline, and why a recognizable address prefix does not prove the recipient’s identity.
You type a short prefix into the Vanity Generator — sol, or three letters of your name — and wait until a Solana address starts that way. That is a vanity address: on this site, a Base58-encoded public key, which is why the figures below use Base58’s 58-character alphabet. For an ordinary key-controlled address the generator draws key pairs until the derived address contains the pattern.
How many draws that takes is unknown before the first one. Someone else can run the same search and produce an address whose opening characters resemble yours. You check who receives the money by comparing the full address.
Search duration is random
If each independent attempt succeeds with probability p, the average run is 1 / p attempts. After n attempts, the chance of at least one hit is 1 − (1 − p)^n. Nothing in that formula names a time at which a hit is due.
Simplified model: If the characters were independent and uniform across 58 symbols, fixing k of them would put the average search about 58^k attempts out. At an assumed 2,000 attempts per second:
| Pattern length | Expected attempts in the model | Mean duration |
|---|---|---|
| 3 characters | 195,112 | about 98 seconds |
| 4 characters | 11,316,496 | about 94 minutes |
| 5 characters | 656,356,768 | about 3.8 days |
These are not measured runtimes for particular Solana prefixes. Base58 encodes fixed-length byte strings, and the characters are not spread evenly, especially at the start. Prefix, address length, case sensitivity and search method all shift the real probability. Attempts per second shift with the machine.
When p is small, waiting out the mean duration produces a hit only about 63% of the time. Reaching about 95% takes roughly three times as long. On the five-character row, that is about 3.8 days to the mean inside this model, and about three times that to the 95% mark. A generator that prints “five minutes remaining” has added some further assumption. The formula alone is not a countdown to a match.
A recognizable prefix does not establish remaining security bits
Seed length, keyspace size and the attack complexity of the signature scheme are three different measurements. “256 bits minus some prefix bits” is not a security figure for a Solana address. RFC8032 specifies Ed25519 and the cryptography it rests on.
You are counting on a sound random source, on key generation that is implemented correctly, and on keeping the private key the search found. A short chosen string does not, by itself, make a correct implementation unsafe. Looking at the prefix will not tell you whether the implementation is correct. If another service hands you the finished private key, you cannot tell who kept a copy.
Not every Solana address has a private key
Ordinary key-controlled Solana addresses are Base58-encoded public keys. Program-derived addresses, PDAs, have no private key of their own. The generator discussed here searches keypairs. The Solana account documentation draws the distinction.
Export a single key and later import it into a wallet, and that wallet’s seed does not automatically cover the key. Before you rely on it, establish which backup file or key format would actually restore it. The app can show the imported address while the wallet’s original seed still cannot bring the key back.
Recognition does not replace address comparison
A donation address you publish and keep reusing ties payments to a purpose and stacks the visible activity on one pattern people remember. The pattern and the publication make that grouping easy to do. The chain is public with or without a vanity address.
An attacker can run the same hunt for similar characters at the start or the end. Before you pay, compare the entire address with a source you trust. The address checksum article explains how a destination can be formally valid and still belong to the wrong recipient.
A useful exercise without funds
Open the Vanity Generator with a short test prefix and keys you can throw away. Repeat the search and write down the attempt count each time. The counts scatter. That scatter alone shows neither a bug in the generator nor a particularly good random source. Add one character to the pattern. In the model behind the table, the work grows by a factor of 58; on your machine you also get the real speed and the uneven character distribution at the start of the address. Do not use those test keys for real holdings.
Sources:
- Solana: Accounts — public keys and program-derived addresses.
- RFC8032: EdDSA — the Ed25519 signature scheme.
- Table and waiting-time formulas: an original simplified probability model, not benchmark results.
Continue reading
- Distinguish seeds, keys and derivation paths
- Self-custody checklist
- Geld 2.0 — Bitcoin and monetary background.