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
NoPaymentHash
The invoice is missing the mandatory payment hash
MultiplePaymentHashes
The invoice has multiple payment hashes which isn’t allowed
NoDescription
No description or description hash are part of the invoice
MultipleDescriptions
The invoice contains multiple descriptions and/or description hashes which isn’t allowed
NoPaymentSecret
The invoice is missing the mandatory payment secret, which all modern lightning nodes should provide.
MultiplePaymentSecrets
The invoice contains multiple payment secrets
InvalidFeatures
The invoice’s features are invalid
InvalidRecoveryId
The recovery id doesn’t fit the signature/pub key
InvalidSignature
The invoice’s signature is invalid
ImpreciseAmount
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