breez_sdk_liquid::bitcoin::bech32

Trait FromBase32

pub trait FromBase32: Sized {
    type Err;

    // Required method
    fn from_base32(b32: &[u5]) -> Result<Self, Self::Err>;
}
Expand description

Parse/convert base32 slice to Self. It is the reciprocal of ToBase32.

Required Associated Types§

type Err

The associated error which can be returned from parsing (e.g. because of bad padding).

Required Methods§

fn from_base32(b32: &[u5]) -> Result<Self, Self::Err>

Convert a base32 slice to Self.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl FromBase32 for Vec<u8>

§

fn from_base32(b32: &[u5]) -> Result<Vec<u8>, <Vec<u8> as FromBase32>::Err>

Convert base32 to base256, removes null-padding if present, returns Err(Error::InvalidPadding) if padding bits are unequal 0

§

type Err = Error

§

impl FromBase32 for Bolt11InvoiceSignature

§

type Err = Bolt11ParseError

§

fn from_base32( signature: &[u5], ) -> Result<Bolt11InvoiceSignature, <Bolt11InvoiceSignature as FromBase32>::Err>

§

impl FromBase32 for Bolt11InvoiceSignature

§

type Err = Bolt11ParseError

§

fn from_base32( signature: &[u5], ) -> Result<Bolt11InvoiceSignature, <Bolt11InvoiceSignature as FromBase32>::Err>

§

impl FromBase32 for Description

§

type Err = Bolt11ParseError

§

fn from_base32(field_data: &[u5]) -> Result<Description, Bolt11ParseError>

§

impl FromBase32 for Description

§

type Err = Bolt11ParseError

§

fn from_base32(field_data: &[u5]) -> Result<Description, Bolt11ParseError>

§

impl FromBase32 for ExpiryTime

§

type Err = Bolt11ParseError

§

fn from_base32(field_data: &[u5]) -> Result<ExpiryTime, Bolt11ParseError>

§

impl FromBase32 for ExpiryTime

§

type Err = Bolt11ParseError

§

fn from_base32(field_data: &[u5]) -> Result<ExpiryTime, Bolt11ParseError>

§

impl FromBase32 for Fallback

§

type Err = Bolt11ParseError

§

fn from_base32(field_data: &[u5]) -> Result<Fallback, Bolt11ParseError>

§

impl FromBase32 for Fallback

§

type Err = Bolt11ParseError

§

fn from_base32(field_data: &[u5]) -> Result<Fallback, Bolt11ParseError>

§

impl FromBase32 for Features<Bolt11InvoiceContext>

§

type Err = Error

§

fn from_base32( field_data: &[u5], ) -> Result<Features<Bolt11InvoiceContext>, Error>

§

impl FromBase32 for Features<Bolt11InvoiceContext>

§

type Err = Error

§

fn from_base32( field_data: &[u5], ) -> Result<Features<Bolt11InvoiceContext>, Error>

§

impl FromBase32 for MinFinalCltvExpiryDelta

§

type Err = Bolt11ParseError

§

fn from_base32( field_data: &[u5], ) -> Result<MinFinalCltvExpiryDelta, Bolt11ParseError>

§

impl FromBase32 for MinFinalCltvExpiryDelta

§

type Err = Bolt11ParseError

§

fn from_base32( field_data: &[u5], ) -> Result<MinFinalCltvExpiryDelta, Bolt11ParseError>

§

impl FromBase32 for PayeePubKey

§

type Err = Bolt11ParseError

§

fn from_base32(field_data: &[u5]) -> Result<PayeePubKey, Bolt11ParseError>

§

impl FromBase32 for PayeePubKey

§

type Err = Bolt11ParseError

§

fn from_base32(field_data: &[u5]) -> Result<PayeePubKey, Bolt11ParseError>

§

impl FromBase32 for PaymentSecret

§

type Err = Error

§

fn from_base32(field_data: &[u5]) -> Result<PaymentSecret, Error>

§

impl FromBase32 for PaymentSecret

§

type Err = Error

§

fn from_base32(field_data: &[u5]) -> Result<PaymentSecret, Error>

§

impl FromBase32 for PositiveTimestamp

§

type Err = Bolt11ParseError

§

fn from_base32( b32: &[u5], ) -> Result<PositiveTimestamp, <PositiveTimestamp as FromBase32>::Err>

§

impl FromBase32 for PositiveTimestamp

§

type Err = Bolt11ParseError

§

fn from_base32( b32: &[u5], ) -> Result<PositiveTimestamp, <PositiveTimestamp as FromBase32>::Err>

§

impl FromBase32 for PrivateRoute

§

type Err = Bolt11ParseError

§

fn from_base32(field_data: &[u5]) -> Result<PrivateRoute, Bolt11ParseError>

§

impl FromBase32 for PrivateRoute

§

type Err = Bolt11ParseError

§

fn from_base32(field_data: &[u5]) -> Result<PrivateRoute, Bolt11ParseError>

§

impl FromBase32 for RawDataPart

§

type Err = Bolt11ParseError

§

fn from_base32( data: &[u5], ) -> Result<RawDataPart, <RawDataPart as FromBase32>::Err>

§

impl FromBase32 for RawDataPart

§

type Err = Bolt11ParseError

§

fn from_base32( data: &[u5], ) -> Result<RawDataPart, <RawDataPart as FromBase32>::Err>

§

impl FromBase32 for Sha256

§

type Err = Bolt11ParseError

§

fn from_base32(field_data: &[u5]) -> Result<Sha256, Bolt11ParseError>

§

impl FromBase32 for Sha256

§

type Err = Bolt11ParseError

§

fn from_base32(field_data: &[u5]) -> Result<Sha256, Bolt11ParseError>

§

impl FromBase32 for TaggedField

§

type Err = Bolt11ParseError

§

fn from_base32(field: &[u5]) -> Result<TaggedField, Bolt11ParseError>

§

impl FromBase32 for TaggedField

§

type Err = Bolt11ParseError

§

fn from_base32(field: &[u5]) -> Result<TaggedField, Bolt11ParseError>

Implementors§

§

impl FromBase32 for breez_sdk_liquid::lightning_invoice::Fallback

§

impl FromBase32 for breez_sdk_liquid::lightning_invoice::TaggedField

§

impl FromBase32 for breez_sdk_liquid::lightning::ln::features::Features<Bolt11InvoiceContext>

§

type Err = Error

§

impl FromBase32 for breez_sdk_liquid::lightning_invoice::Bolt11InvoiceSignature

§

impl FromBase32 for breez_sdk_liquid::lightning_invoice::Description

§

impl FromBase32 for breez_sdk_liquid::lightning_invoice::ExpiryTime

§

impl FromBase32 for breez_sdk_liquid::lightning_invoice::MinFinalCltvExpiryDelta

§

impl FromBase32 for breez_sdk_liquid::lightning_invoice::PayeePubKey

§

impl FromBase32 for breez_sdk_liquid::lightning_invoice::PaymentSecret

§

type Err = Error

§

impl FromBase32 for breez_sdk_liquid::lightning_invoice::PositiveTimestamp

§

impl FromBase32 for breez_sdk_liquid::lightning_invoice::PrivateRoute

§

impl FromBase32 for breez_sdk_liquid::lightning_invoice::RawDataPart

§

impl FromBase32 for breez_sdk_liquid::lightning_invoice::Sha256