Skip to main content

peer_input_to_hex

Function peer_input_to_hex 

Source
pub fn peer_input_to_hex(input: String) -> String
Expand 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.