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