pub fn peer_input_to_hex(input: String) -> StringExpand description
Convert any pubkey-shaped input (hex, npub, nprofile, …) to its canonical lowercase-hex form. The empty string is returned when the input can’t be parsed as a public key — callers expecting hex downstream can short-circuit on that.