2 export enum SemanticError {
4 * The invoice is missing the mandatory payment hash
6 LDKSemanticError_NoPaymentHash,
8 * The invoice has multiple payment hashes which isn't allowed
10 LDKSemanticError_MultiplePaymentHashes,
12 * No description or description hash are part of the invoice
14 LDKSemanticError_NoDescription,
16 * The invoice contains multiple descriptions and/or description hashes which isn't allowed
18 LDKSemanticError_MultipleDescriptions,
20 * The invoice is missing the mandatory payment secret, which all modern lightning nodes
23 LDKSemanticError_NoPaymentSecret,
25 * The invoice contains multiple payment secrets
27 LDKSemanticError_MultiplePaymentSecrets,
29 * The invoice's features are invalid
31 LDKSemanticError_InvalidFeatures,
33 * The recovery id doesn't fit the signature/pub key
35 LDKSemanticError_InvalidRecoveryId,
37 * The invoice's signature is invalid
39 LDKSemanticError_InvalidSignature,
41 * The invoice's amount was not a whole number of millisatoshis
43 LDKSemanticError_ImpreciseAmount,