Enum Bolt11Bech32
pub enum Bolt11Bech32 {}
Expand description
The bech32::Bech32
checksum algorithm, with extended max length suitable
for BOLT11 invoices.
Trait Implementations§
§impl Checksum for Bolt11Bech32
impl Checksum for Bolt11Bech32
§const CODE_LENGTH: usize = 7_089usize
const CODE_LENGTH: usize = 7_089usize
Extend the max length from the 1023 bytes default.
§const CHECKSUM_LENGTH: usize = 6usize
const CHECKSUM_LENGTH: usize = 6usize
The number of characters in the checksum. Read more
§const GENERATOR_SH: [<Bolt11Bech32 as Checksum>::MidstateRepr; 5] = bech32::Bech32::GENERATOR_SH
const GENERATOR_SH: [<Bolt11Bech32 as Checksum>::MidstateRepr; 5] = bech32::Bech32::GENERATOR_SH
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
§const TARGET_RESIDUE: <Bolt11Bech32 as Checksum>::MidstateRepr = {transmute(0x00000001): <sdk_common::lightning::lightning_invoice::Bolt11Bech32 as electrum_client::bitcoin::bech32::Checksum>::MidstateRepr}
const TARGET_RESIDUE: <Bolt11Bech32 as Checksum>::MidstateRepr = {transmute(0x00000001): <sdk_common::lightning::lightning_invoice::Bolt11Bech32 as electrum_client::bitcoin::bech32::Checksum>::MidstateRepr}
The residue, modulo the generator polynomial, that a valid codeword will have.
§type MidstateRepr = <Bech32 as Checksum>::MidstateRepr
type MidstateRepr = <Bech32 as Checksum>::MidstateRepr
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
§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 Bolt11Bech32
impl Send for Bolt11Bech32
impl Sync for Bolt11Bech32
impl RefUnwindSafe for Bolt11Bech32
impl Unpin for Bolt11Bech32
impl UnwindSafe for Bolt11Bech32
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request