[C#] Update auto-generated C# bindings
[ldk-java] / c_sharp / src / org / ldk / structs / TxComplete.cs
index bcd8814cc3a80893e9e1cf9f4eadabad3b80da04..783ef55520f318150e91e649b37b05caa7a239f4 100644 (file)
@@ -66,6 +66,18 @@ public class TxComplete : CommonBase {
                return ret_hu_conv;
        }
 
+       /**
+        * Generates a non-cryptographic 64-bit hash of the TxComplete.
+        */
+       public long hash() {
+               long ret = bindings.TxComplete_hash(this.ptr);
+               GC.KeepAlive(this);
+               return ret;
+       }
+
+       public override int GetHashCode() {
+               return (int)this.hash();
+       }
        /**
         * Checks if two TxCompletes contain equal inner contents.
         * This ignores pointers and is_owned flags and looks at the values in fields.