pub enum LongBech32m {}Expand description
A bech32m checksum with no hard length limit.
bech32 0.11 caps bech32::Bech32m at 1023 characters, but Aleo types such as
ciphertexts, state paths, and snark keys can legitimately exceed this. This type
uses identical generator coefficients and target residue as Bech32m, so encoded
strings are valid bech32m and round-trip correctly with any standard decoder that
does not enforce a maximum length.
Trait Implementations§
Source§impl Checksum for LongBech32m
impl Checksum for LongBech32m
Source§const CHECKSUM_LENGTH: usize = 6
const CHECKSUM_LENGTH: usize = 6
The number of characters in the checksum. Read more
Source§const CODE_LENGTH: usize = usize::MAX
const CODE_LENGTH: usize = usize::MAX
The length of the code. Read more
Source§const GENERATOR_SH: [u32; 5]
const GENERATOR_SH: [u32; 5]
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 = 0x2bc830a3
const TARGET_RESIDUE: u32 = 0x2bc830a3
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
Auto Trait Implementations§
impl Freeze for LongBech32m
impl RefUnwindSafe for LongBech32m
impl Send for LongBech32m
impl Sync for LongBech32m
impl Unpin for LongBech32m
impl UnsafeUnpin for LongBech32m
impl UnwindSafe for LongBech32m
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more