Bech32

Trait Bech32 

Source
pub trait Bech32 {
    const BECH32_HRP: &'static str;

    // Required methods
    fn try_from_bech32_str(bech32_str: &str) -> Result<Self>
       where Self: Sized;
    fn to_bech32_str(&self) -> String;
}

Required Associated Constants§

Source

const BECH32_HRP: &'static str

Required Methods§

Source

fn try_from_bech32_str(bech32_str: &str) -> Result<Self>
where Self: Sized,

Source

fn to_bech32_str(&self) -> String

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Bech32 for Digest<Blake2b256>

Source§

const BECH32_HRP: &'static str = "blake2b"

Source§

impl Bech32 for Digest<Sha3_256>

Source§

const BECH32_HRP: &'static str = "sha3"

Source§

impl Bech32 for Blake2b256

Source§

const BECH32_HRP: &'static str = "blake2b256"

Source§

impl Bech32 for Sha3_256

Source§

const BECH32_HRP: &'static str = "sha3256"

Source§

impl<A: AsymmetricKey> Bech32 for SecretKey<A>

Source§

const BECH32_HRP: &'static str = A::SECRET_BECH32_HRP

Source§

impl<A: AsymmetricPublicKey> Bech32 for PublicKey<A>

Source§

const BECH32_HRP: &'static str = A::PUBLIC_BECH32_HRP

Source§

impl<T> Bech32 for DigestOf<Blake2b256, T>

Source§

const BECH32_HRP: &'static str = "blake2b"

Source§

impl<T> Bech32 for DigestOf<Sha3_256, T>

Source§

const BECH32_HRP: &'static str = "sha3"

Source§

impl<T, A: VerificationAlgorithm> Bech32 for Signature<T, A>

Source§

const BECH32_HRP: &'static str = A::SIGNATURE_BECH32_HRP