pub enum Bech32 {}Expand description
The bech32 checksum algorithm, defined in BIP-173.
Trait Implementations§
Source§impl Checksum for Bech32
impl Checksum for Bech32
Source§const CODE_LENGTH: usize = 1_023usize
const CODE_LENGTH: usize = 1_023usize
The length of the code. Read more
Source§const CHECKSUM_LENGTH: usize = 6usize
const CHECKSUM_LENGTH: usize = 6usize
The number of characters in the checksum. Read more
Source§const GENERATOR_SH: [u32; 5] = GEN
const GENERATOR_SH: [u32; 5] = GEN
The coefficients of the generator polynomial, except the leading monic term,
in “big-endian” (highest-degree coefficients get leftmost bits) order, along
with the 4 shifts of the generator. Read more
Source§const TARGET_RESIDUE: u32 = 1u32
const TARGET_RESIDUE: u32 = 1u32
The residue, modulo the generator polynomial, that a valid codeword will have.
Source§type MidstateRepr = u32
type MidstateRepr = u32
An unsigned integer type capable of holding a packed version of the generator
polynomial (without its leading 1) and target residue (which will have the
same width). Read more
Source§fn sanity_check()
fn sanity_check()
Sanity checks that the various constants of the trait are set in a way that they
are consistent with each other. Read more
Source§impl Ord for Bech32
impl Ord for Bech32
Source§impl PartialOrd for Bech32
impl PartialOrd for Bech32
impl Copy for Bech32
impl Eq for Bech32
impl StructuralPartialEq for Bech32
Auto Trait Implementations§
impl Freeze for Bech32
impl RefUnwindSafe for Bech32
impl Send for Bech32
impl Sync for Bech32
impl Unpin for Bech32
impl UnwindSafe for Bech32
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more