[Java] Update auto-generated bindings to LDK 0.0.123
[ldk-java] / src / main / java / org / ldk / structs / Bolt11Invoice.java
index efe7e133837e2b7946de2f32c5d8c58e6e821b3b..67e9f44beb63214e2efeffc44eb4ae598707907e 100644 (file)
@@ -33,7 +33,7 @@ public class Bolt11Invoice extends CommonBase {
         * Two objects with NULL inner values will be considered "equal" here.
         */
        public boolean eq(org.ldk.structs.Bolt11Invoice b) {
-               boolean ret = bindings.Bolt11Invoice_eq(this.ptr, b == null ? 0 : b.ptr);
+               boolean ret = bindings.Bolt11Invoice_eq(this.ptr, b.ptr);
                Reference.reachabilityFence(this);
                Reference.reachabilityFence(b);
                if (this != null) { this.ptrs_to.add(b); };
@@ -130,7 +130,7 @@ public class Bolt11Invoice extends CommonBase {
         * ```
         */
        public static Result_Bolt11InvoiceBolt11SemanticErrorZ from_signed(org.ldk.structs.SignedRawBolt11Invoice signed_invoice) {
-               long ret = bindings.Bolt11Invoice_from_signed(signed_invoice == null ? 0 : signed_invoice.ptr);
+               long ret = bindings.Bolt11Invoice_from_signed(signed_invoice.ptr);
                Reference.reachabilityFence(signed_invoice);
                if (ret >= 0 && ret <= 4096) { return null; }
                Result_Bolt11InvoiceBolt11SemanticErrorZ ret_hu_conv = Result_Bolt11InvoiceBolt11SemanticErrorZ.constr_from_ptr(ret);
@@ -222,6 +222,16 @@ public class Bolt11Invoice extends CommonBase {
                return ret;
        }
 
+       /**
+        * Recover the payee's public key if one was included in the invoice, otherwise return the
+        * recovered public key from the signature
+        */
+       public byte[] get_payee_pub_key() {
+               byte[] ret = bindings.Bolt11Invoice_get_payee_pub_key(this.ptr);
+               Reference.reachabilityFence(this);
+               return ret;
+       }
+
        /**
         * Returns the Duration since the Unix epoch at which the invoice expires.
         * Returning None if overflow occurred.