Function public_key_from_hex

Source
pub fn public_key_from_hex(hex: &str) -> Result<Secp256r1PublicKey, CryptoError>
Expand description

Convert a public key in hex format to a Secp256r1PublicKey.

ยงErrors

Will return an error if hex decoding fails