Trait fcp_cryptoauth::keys::FromBase32 [] [src]

pub trait FromBase32: Sized {
    fn from_base32(characters: &[u8]) -> Option<Self>;
}

Used to decode a CryptoAuth public key.

Example

use fcp_cryptoauth::cryptography::crypto_box::PublicKey;
use fcp_cryptoauth::keys::FromBase32;
let pk = PublicKey::from_base32(b"2wrpv8p4tjwm532sjxcbqzkp7kdwfwzzbg7g0n5l6g3s8df4kvv0.k");
assert!(pk.is_some());

Required Methods

Implementors