5
5
*/
6
6
public enum Bolt12SemanticError {
7
7
/**
8
- * The current [`std:: time::SystemTime`] is past the offer or invoice's expiration.
8
+ * The current system time is past the offer or invoice's expiration.
9
9
*/
10
10
LDKBolt12SemanticError_AlreadyExpired ,
11
11
/**
@@ -21,7 +21,7 @@ public enum Bolt12SemanticError {
21
21
*/
22
22
LDKBolt12SemanticError_MissingAmount ,
23
23
/**
24
- * The amount exceeded the total bitcoin supply.
24
+ * The amount exceeded the total bitcoin supply or didn't match an expected amount .
25
25
*/
26
26
LDKBolt12SemanticError_InvalidAmount ,
27
27
/**
@@ -49,17 +49,13 @@ public enum Bolt12SemanticError {
49
49
*/
50
50
LDKBolt12SemanticError_MissingDescription ,
51
51
/**
52
- * A signing pubkey was not provided.
53
- */
54
- LDKBolt12SemanticError_MissingSigningPubkey ,
55
- /**
56
- * A signing pubkey was provided but a different one was expected.
52
+ * An issuer's signing pubkey was not provided.
57
53
*/
58
- LDKBolt12SemanticError_InvalidSigningPubkey ,
54
+ LDKBolt12SemanticError_MissingIssuerSigningPubkey ,
59
55
/**
60
- * A signing pubkey was provided but was not expected.
56
+ * An issuer's signing pubkey was provided but was not expected.
61
57
*/
62
- LDKBolt12SemanticError_UnexpectedSigningPubkey ,
58
+ LDKBolt12SemanticError_UnexpectedIssuerSigningPubkey ,
63
59
/**
64
60
* A quantity was expected but was missing.
65
61
*/
@@ -85,9 +81,9 @@ public enum Bolt12SemanticError {
85
81
*/
86
82
LDKBolt12SemanticError_MissingPayerMetadata ,
87
83
/**
88
- * A payer id was expected but was missing.
84
+ * A payer signing pubkey was expected but was missing.
89
85
*/
90
- LDKBolt12SemanticError_MissingPayerId ,
86
+ LDKBolt12SemanticError_MissingPayerSigningPubkey ,
91
87
/**
92
88
* The payment id for a refund or request is already in use.
93
89
*/
@@ -116,10 +112,25 @@ public enum Bolt12SemanticError {
116
112
* An invoice payment hash was provided but was not expected.
117
113
*/
118
114
LDKBolt12SemanticError_UnexpectedPaymentHash ,
115
+ /**
116
+ * A signing pubkey was not provided.
117
+ */
118
+ LDKBolt12SemanticError_MissingSigningPubkey ,
119
+ /**
120
+ * A signing pubkey was provided but a different one was expected.
121
+ */
122
+ LDKBolt12SemanticError_InvalidSigningPubkey ,
119
123
/**
120
124
* A signature was expected but was missing.
121
125
*/
122
126
LDKBolt12SemanticError_MissingSignature ,
127
+ /**
128
+ * A Human Readable Name was provided but was not expected (i.e. was included in a
129
+ * [`Refund`]).
130
+ *
131
+ * [`Refund`]: super::refund::Refund
132
+ */
133
+ LDKBolt12SemanticError_UnexpectedHumanReadableName ,
123
134
; static native void init ();
124
135
static { org .ldk .impl .bindings .run_statics (); init (); }
125
136
}
0 commit comments