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

Object Safety§

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