1 namespace org { namespace ldk { namespace enums {/**
2 * Errors that may occur when converting a [`RawBolt11Invoice`] to a [`Bolt11Invoice`]. They relate to
3 * the requirements sections in BOLT #11
5 public enum Bolt11SemanticError {
7 * The invoice is missing the mandatory payment hash
9 LDKBolt11SemanticError_NoPaymentHash,
11 * The invoice has multiple payment hashes which isn't allowed
13 LDKBolt11SemanticError_MultiplePaymentHashes,
15 * No description or description hash are part of the invoice
17 LDKBolt11SemanticError_NoDescription,
19 * The invoice contains multiple descriptions and/or description hashes which isn't allowed
21 LDKBolt11SemanticError_MultipleDescriptions,
23 * The invoice is missing the mandatory payment secret, which all modern lightning nodes
26 LDKBolt11SemanticError_NoPaymentSecret,
28 * The invoice contains multiple payment secrets
30 LDKBolt11SemanticError_MultiplePaymentSecrets,
32 * The invoice's features are invalid
34 LDKBolt11SemanticError_InvalidFeatures,
36 * The recovery id doesn't fit the signature/pub key
38 LDKBolt11SemanticError_InvalidRecoveryId,
40 * The invoice's signature is invalid
42 LDKBolt11SemanticError_InvalidSignature,
44 * The invoice's amount was not a whole number of millisatoshis
46 LDKBolt11SemanticError_ImpreciseAmount,