Enum lightning::offers::parse::Bolt12SemanticError
source · pub enum Bolt12SemanticError {
Show 28 variants
AlreadyExpired,
UnsupportedChain,
UnexpectedChain,
MissingAmount,
InvalidAmount,
InsufficientAmount,
UnexpectedAmount,
UnsupportedCurrency,
UnknownRequiredFeatures,
UnexpectedFeatures,
MissingDescription,
MissingSigningPubkey,
InvalidSigningPubkey,
UnexpectedSigningPubkey,
MissingQuantity,
InvalidQuantity,
UnexpectedQuantity,
InvalidMetadata,
UnexpectedMetadata,
MissingPayerMetadata,
MissingPayerId,
DuplicatePaymentId,
MissingPaths,
UnexpectedPaths,
InvalidPayInfo,
MissingCreationTime,
MissingPaymentHash,
MissingSignature,
}
Expand description
Error when interpreting a TLV stream as a specific type.
Variants§
AlreadyExpired
The current std::time::SystemTime
is past the offer or invoice’s expiration.
UnsupportedChain
The provided chain hash does not correspond to a supported chain.
UnexpectedChain
A chain was provided but was not expected.
MissingAmount
An amount was expected but was missing.
InvalidAmount
The amount exceeded the total bitcoin supply.
InsufficientAmount
An amount was provided but was not sufficient in value.
UnexpectedAmount
An amount was provided but was not expected.
UnsupportedCurrency
A currency was provided that is not supported.
UnknownRequiredFeatures
A feature was required but is unknown.
UnexpectedFeatures
Features were provided but were not expected.
MissingDescription
A required description was not provided.
MissingSigningPubkey
A signing pubkey was not provided.
InvalidSigningPubkey
A signing pubkey was provided but a different one was expected.
UnexpectedSigningPubkey
A signing pubkey was provided but was not expected.
MissingQuantity
A quantity was expected but was missing.
InvalidQuantity
An unsupported quantity was provided.
UnexpectedQuantity
A quantity or quantity bounds was provided but was not expected.
InvalidMetadata
Metadata could not be used to verify the offers message.
UnexpectedMetadata
Metadata was provided but was not expected.
MissingPayerMetadata
Payer metadata was expected but was missing.
MissingPayerId
A payer id was expected but was missing.
DuplicatePaymentId
The payment id for a refund or request is already in use.
MissingPaths
Blinded paths were expected but were missing.
UnexpectedPaths
Blinded paths were provided but were not expected.
InvalidPayInfo
The blinded payinfo given does not match the number of blinded path hops.
MissingCreationTime
An invoice creation time was expected but was missing.
MissingPaymentHash
An invoice payment hash was expected but was missing.
MissingSignature
A signature was expected but was missing.
Trait Implementations§
source§impl Clone for Bolt12SemanticError
impl Clone for Bolt12SemanticError
source§fn clone(&self) -> Bolt12SemanticError
fn clone(&self) -> Bolt12SemanticError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Bolt12SemanticError
impl Debug for Bolt12SemanticError
source§impl From<Bolt12SemanticError> for Bolt12ParseError
impl From<Bolt12SemanticError> for Bolt12ParseError
source§fn from(error: Bolt12SemanticError) -> Self
fn from(error: Bolt12SemanticError) -> Self
source§impl From<Bolt12SemanticError> for InvoiceError
impl From<Bolt12SemanticError> for InvoiceError
source§fn from(error: Bolt12SemanticError) -> Self
fn from(error: Bolt12SemanticError) -> Self
source§impl PartialEq for Bolt12SemanticError
impl PartialEq for Bolt12SemanticError
source§fn eq(&self, other: &Bolt12SemanticError) -> bool
fn eq(&self, other: &Bolt12SemanticError) -> bool
self
and other
values to be equal, and is used
by ==
.