Enum lightning_invoice::SemanticError [−][src]
pub enum SemanticError {
NoPaymentHash,
MultiplePaymentHashes,
NoDescription,
MultipleDescriptions,
NoPaymentSecret,
MultiplePaymentSecrets,
InvalidFeatures,
InvalidRecoveryId,
InvalidSignature,
ImpreciseAmount,
}
Expand description
Errors that may occur when converting a RawInvoice
to an Invoice
. They relate to the
requirements sections in BOLT #11
Variants
The invoice is missing the mandatory payment hash
The invoice has multiple payment hashes which isn’t allowed
No description or description hash are part of the invoice
The invoice contains multiple descriptions and/or description hashes which isn’t allowed
The invoice is missing the mandatory payment secret, which all modern lightning nodes should provide.
The invoice contains multiple payment secrets
The invoice’s features are invalid
The recovery id doesn’t fit the signature/pub key
The invoice’s signature is invalid
The invoice’s amount was not a whole number of millisatoshis
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for SemanticError
impl Send for SemanticError
impl Sync for SemanticError
impl Unpin for SemanticError
impl UnwindSafe for SemanticError
Blanket Implementations
Mutably borrows from an owned value. Read more