Function private_key_from_hex

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

Convert a private key in hex format to a Secp256r1PrivateKey.

ยงErrors

Will return an error if the hex decoding fails