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