Struct subtle_encoding::bech32::Bech32[][src]

pub struct Bech32 {
    pub charset: [char; 32],
    pub charset_inverse: [Option<u8>; 128],
    pub separator: char,
}

Bech32 encoder/decoder

Fields

Encoding character set

Inverse alphabet used to decode

Separator between the human readable and base32-encoded parts of a Bech32 string

Methods

impl Bech32
[src]

Decode lower case Bech32 strings

Decode upper case Bech32 strings

Create a Bech32 encoder with the given separator character

Panics if the separator character is invalid

Return the separator character currently in use

Encode a bech32 string from a human-readable part (hrp) and binary data

Decode a bech32 string to a human-readable part (HRP) and binary data

Trait Implementations

impl Default for Bech32
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for Bech32

impl Sync for Bech32