Skip to main content

peer_input_to_npub

Function peer_input_to_npub 

Source
pub fn peer_input_to_npub(input: String) -> String
Expand description

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.