pub enum Bolt12SemanticError {
Show 31 variants
AlreadyExpired,
UnsupportedChain,
UnexpectedChain,
MissingAmount,
InvalidAmount,
InsufficientAmount,
UnexpectedAmount,
UnsupportedCurrency,
UnknownRequiredFeatures,
UnexpectedFeatures,
MissingDescription,
MissingIssuerSigningPubkey,
UnexpectedIssuerSigningPubkey,
MissingQuantity,
InvalidQuantity,
UnexpectedQuantity,
InvalidMetadata,
UnexpectedMetadata,
MissingPayerMetadata,
MissingPayerSigningPubkey,
DuplicatePaymentId,
MissingPaths,
UnexpectedPaths,
InvalidPayInfo,
MissingCreationTime,
MissingPaymentHash,
UnexpectedPaymentHash,
MissingSigningPubkey,
InvalidSigningPubkey,
MissingSignature,
UnexpectedHumanReadableName,
}Expand description
Error when interpreting a TLV stream as a specific type.
Variants§
AlreadyExpired
The current system time 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 or didn’t match an expected amount.
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.
MissingIssuerSigningPubkey
An issuer’s signing pubkey was not provided.
UnexpectedIssuerSigningPubkey
An issuer’s 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.
MissingPayerSigningPubkey
A payer signing pubkey 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.
UnexpectedPaymentHash
An invoice payment hash was provided but was not expected.
MissingSigningPubkey
A signing pubkey was not provided.
InvalidSigningPubkey
A signing pubkey was provided but a different one was expected.
MissingSignature
A signature was expected but was missing.
UnexpectedHumanReadableName
A Human Readable Name was provided but was not expected (i.e. was included in a
Refund).
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 more