pub enum Bech32m {}
Expand description
The bech32m checksum algorithm, defined in BIP-350.
Trait Implementations§
source§impl Checksum for Bech32m
impl Checksum for Bech32m
§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§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 = 734_539_939u32
const TARGET_RESIDUE: u32 = 734_539_939u32
The residue, modulo the generator polynomial, that a valid codeword will have.
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 Bech32m
impl Ord for Bech32m
source§impl PartialEq<Bech32m> for Bech32m
impl PartialEq<Bech32m> for Bech32m
source§impl PartialOrd<Bech32m> for Bech32m
impl PartialOrd<Bech32m> for Bech32m
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Bech32m
impl Eq for Bech32m
impl StructuralEq for Bech32m
impl StructuralPartialEq for Bech32m
Auto Trait Implementations§
impl RefUnwindSafe for Bech32m
impl Send for Bech32m
impl Sync for Bech32m
impl Unpin for Bech32m
impl UnwindSafe for Bech32m
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