pub fn peer_input_to_npub(input: String) -> String
Convert any pubkey-shaped input (hex, npub, nprofile, …) to its npub form. Returns the original string when it can’t be parsed as a public key.