[Java] Update auto-generated Java files
[ldk-java] / src / main / java / org / ldk / structs / SignedRawInvoice.java
index d5a17cb941fd90c9de60a4a90d15e11d2106bcdf..b8e833004de65dce5f5afaf4de114b871b5050dc 100644 (file)
@@ -59,6 +59,18 @@ public class SignedRawInvoice extends CommonBase {
                return ret_hu_conv;
        }
 
+       /**
+        * Checks if two SignedRawInvoices contain equal inner contents.
+        */
+       public long hash() {
+               long ret = bindings.SignedRawInvoice_hash(this.ptr);
+               Reference.reachabilityFence(this);
+               return ret;
+       }
+
+       @Override public int hashCode() {
+               return (int)this.hash();
+       }
        /**
         * Disassembles the `SignedRawInvoice` into its three parts:
         * 1. raw invoice
@@ -90,8 +102,8 @@ public class SignedRawInvoice extends CommonBase {
        /**
         * The hash of the `RawInvoice` that was signed.
         */
-       public byte[] hash() {
-               byte[] ret = bindings.SignedRawInvoice_hash(this.ptr);
+       public byte[] signable_hash() {
+               byte[] ret = bindings.SignedRawInvoice_signable_hash(this.ptr);
                Reference.reachabilityFence(this);
                return ret;
        }