You can post a public key on your website, print it on a business card, or send it to strangers. Knowing it doesn't let anyone decrypt your messages or forge your signature. That's the job of the matching private key.

What a public key does let people do: encrypt something that only you can open, and check that a signature really came from your private key. The tricky part is knowing a public key really belongs to who you think it does. If an attacker swaps in their own key, you'll happily encrypt to them. That's where fingerprints, key-signing, TLS certificate authorities and in-person verification come in.

Onion services sidestep this problem neatly. A v3 onion address is the public key, encoded. If you have the correct address, you have the correct key, and Tor checks it for you. The trust question just moves to "where did I get this address," which is why phishing mirrors are such a problem.