Generate tor url from tor specs
Torspec onion outline
- The public key is the 32 bytes ed25519 master pubkey of the hidden service.
- The checksum is truncated to two bytes before inserting it in onion_address
- Current default byte value is '\x03' for checksum
- Configuration of onion_address = base32(PUBKEY | CHECKSUM | VERSION) + ".onion"
- Configuration of checksum = H(".onion checksum" | PUBKEY | VERSION)[:2]
- Private key expansion referenced from A.2. Tor's key derivation scheme bitwise operations
Build and run container
docker build -t vanitygen:1 .
docker run -v local_directory:/onion_dir -e PREFIX="tor" vanityonion:1
find assets in attached volume