Update auto-generated bindings to 0.0.101
[ldk-java] / src / main / java / org / ldk / structs / PayeePubKey.java
index efe6a6a7eb7f5243f8f3951db34e59b995a2f1c0..b6ea267f9c8c82e200f687db201c2715c572a3b1 100644 (file)
@@ -19,17 +19,6 @@ public class PayeePubKey extends CommonBase {
                if (ptr != 0) { bindings.PayeePubKey_free(ptr); }
        }
 
-       /**
-        * Checks if two PayeePubKeys contain equal inner contents.
-        * This ignores pointers and is_owned flags and looks at the values in fields.
-        * Two objects with NULL inner values will be considered "equal" here.
-        */
-       public boolean eq(PayeePubKey b) {
-               boolean ret = bindings.PayeePubKey_eq(this.ptr, b == null ? 0 : b.ptr & ~1);
-               this.ptrs_to.add(b);
-               return ret;
-       }
-
        /**
         * Creates a copy of the PayeePubKey
         */
@@ -41,4 +30,23 @@ public class PayeePubKey extends CommonBase {
                return ret_hu_conv;
        }
 
+       /**
+        * Checks if two PayeePubKeys contain equal inner contents.
+        */
+       public long hash() {
+               long ret = bindings.PayeePubKey_hash(this.ptr);
+               return ret;
+       }
+
+       /**
+        * Checks if two PayeePubKeys contain equal inner contents.
+        * This ignores pointers and is_owned flags and looks at the values in fields.
+        * Two objects with NULL inner values will be considered "equal" here.
+        */
+       public boolean eq(PayeePubKey b) {
+               boolean ret = bindings.PayeePubKey_eq(this.ptr, b == null ? 0 : b.ptr & ~1);
+               this.ptrs_to.add(b);
+               return ret;
+       }
+
 }