4 * Error when interpreting a TLV stream as a specific type.
6 public enum Bolt12SemanticError {
8 * The current [`std::time::SystemTime`] is past the offer or invoice's expiration.
10 LDKBolt12SemanticError_AlreadyExpired,
12 * The provided chain hash does not correspond to a supported chain.
14 LDKBolt12SemanticError_UnsupportedChain,
16 * A chain was provided but was not expected.
18 LDKBolt12SemanticError_UnexpectedChain,
20 * An amount was expected but was missing.
22 LDKBolt12SemanticError_MissingAmount,
24 * The amount exceeded the total bitcoin supply.
26 LDKBolt12SemanticError_InvalidAmount,
28 * An amount was provided but was not sufficient in value.
30 LDKBolt12SemanticError_InsufficientAmount,
32 * An amount was provided but was not expected.
34 LDKBolt12SemanticError_UnexpectedAmount,
36 * A currency was provided that is not supported.
38 LDKBolt12SemanticError_UnsupportedCurrency,
40 * A feature was required but is unknown.
42 LDKBolt12SemanticError_UnknownRequiredFeatures,
44 * Features were provided but were not expected.
46 LDKBolt12SemanticError_UnexpectedFeatures,
48 * A required description was not provided.
50 LDKBolt12SemanticError_MissingDescription,
52 * A signing pubkey was not provided.
54 LDKBolt12SemanticError_MissingSigningPubkey,
56 * A signing pubkey was provided but a different one was expected.
58 LDKBolt12SemanticError_InvalidSigningPubkey,
60 * A signing pubkey was provided but was not expected.
62 LDKBolt12SemanticError_UnexpectedSigningPubkey,
64 * A quantity was expected but was missing.
66 LDKBolt12SemanticError_MissingQuantity,
68 * An unsupported quantity was provided.
70 LDKBolt12SemanticError_InvalidQuantity,
72 * A quantity or quantity bounds was provided but was not expected.
74 LDKBolt12SemanticError_UnexpectedQuantity,
76 * Metadata could not be used to verify the offers message.
78 LDKBolt12SemanticError_InvalidMetadata,
80 * Metadata was provided but was not expected.
82 LDKBolt12SemanticError_UnexpectedMetadata,
84 * Payer metadata was expected but was missing.
86 LDKBolt12SemanticError_MissingPayerMetadata,
88 * A payer id was expected but was missing.
90 LDKBolt12SemanticError_MissingPayerId,
92 * The payment id for a refund or request is already in use.
94 LDKBolt12SemanticError_DuplicatePaymentId,
96 * Blinded paths were expected but were missing.
98 LDKBolt12SemanticError_MissingPaths,
100 * The blinded payinfo given does not match the number of blinded path hops.
102 LDKBolt12SemanticError_InvalidPayInfo,
104 * An invoice creation time was expected but was missing.
106 LDKBolt12SemanticError_MissingCreationTime,
108 * An invoice payment hash was expected but was missing.
110 LDKBolt12SemanticError_MissingPaymentHash,
112 * A signature was expected but was missing.
114 LDKBolt12SemanticError_MissingSignature,
115 ; static native void init();