Trait fcp_cryptoauth::keys::FromHex
[−]
[src]
pub trait FromHex: Sized { fn from_hex(characters: &[u8]) -> Option<Self>; }
Used to decode a CryptoAuth secret key.
Example
use fcp_cryptoauth::cryptography::crypto_box::SecretKey; use fcp_cryptoauth::keys::FromHex; let sk = SecretKey::from_hex(b"ac3e53b518e68449692b0b2f2926ef2fdc1eac5b9dbd10a48114263b8c8ed12e"); assert!(sk.is_some());
Required Methods
Implementors
impl FromHex for SecretKey