This package implements an efficient curve25519 vanity key generator.
This package provides functions to generate vanity curve25519 key pair with a specific pattern in its public key. It uses an optimized search algorithm that generates candidate public keys by adding offsets to the start public key, avoiding the need to perform full scalar multiplication for each candidate.
The algorithm has amortized cost (3.5M + 3A) per candidate key, where M is field multiplication and A is field addition.
For comparison, brute-force key pair generator requires 2561 field multiplications using double-and-add or 743 field multiplications using Twisted Edwards curve per candidate key.
See example_test.go for usage.
- wireguard-vanity-key — Fast WireGuard vanity key generator.
- age-vanity-keygen — Fast vanity age X25519 identity generator.
- onion-vanity-address — Fast Tor Onion Service vanity address generator.