cretz / bine

Go library for accessing and embedding Tor clients and servers
MIT License
756 stars 70 forks source link

How to generate domains #84

Open mateusfmello opened 7 months ago

mateusfmello commented 7 months ago

Does anyone have a model on how to use the library just to generate .onion domains, or a better way to do this? I'm new to the Tor network, but I wanted to generate some domains using GoLang to do some testing :D

cretz commented 7 months ago

Onion domains are just ed25519 public keys w/ some extra data then base 32'd IIRC. See the github.com/cretz/bine/torutil package on how you can create them from ed25519 public keys.