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