[Java] Update auto-generated Java files
[ldk-java] / src / main / java / org / ldk / structs / RawInvoice.java
index fea24f2d06055789d69bd1d605c166ecd2aca399..107e6c0e1d9bd54221c727945ac5233875827909 100644 (file)
@@ -82,10 +82,22 @@ public class RawInvoice extends CommonBase {
        }
 
        /**
-        * Calculate the hash of the encoded `RawInvoice`
+        * Checks if two RawInvoices contain equal inner contents.
+        */
+       public long hash() {
+               long ret = bindings.RawInvoice_hash(this.ptr);
+               Reference.reachabilityFence(this);
+               return ret;
+       }
+
+       @Override public int hashCode() {
+               return (int)this.hash();
+       }
+       /**
+        * Calculate the hash of the encoded `RawInvoice` which should be signed.
         */
-       public byte[] hash() {
-               byte[] ret = bindings.RawInvoice_hash(this.ptr);
+       public byte[] signable_hash() {
+               byte[] ret = bindings.RawInvoice_signable_hash(this.ptr);
                Reference.reachabilityFence(this);
                return ret;
        }