pub fn parse_emoji_id_or_public_key(key: &str) -> Option<CommsPublicKey> {
    EmojiId::str_to_pubkey(&key.trim().replace('|', ""))
        .or_else(|_| CommsPublicKey::from_hex(key))
        .ok()
}
/// Returns a CommsPublicKey from either a emoji id or a public key
Returns a CommsPublicKey from either a emoji id or a public key
Returns a CommsPublicKey from either a emoji id or a public key
pub fn parse_emoji_id_or_public_key(key: &str) -> Option<CommsPublicKey> {
    EmojiId::str_to_pubkey(&key.trim().replace('|', ""))
        .or_else(|_| CommsPublicKey::from_hex(key))
        .ok()
}
pub fn parse_emoji_id_or_public_key ( key : & str ) -> Option < CommsPublicKey > { EmojiId :: str_to_pubkey ( & key . trim ( ) . replace ( '|' , " " ) ) . or_else ( | _ | CommsPublicKey :: from_hex ( key ) ) . ok ( ) }
Returns a CommsPublicKey from either a emoji id or a public key
Returns a CommsPublicKey from either a emoji id or a public key
key
&str
key
&str