X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=c_sharp%2Fsrc%2Forg%2Fldk%2Fstructs%2FTxRemoveOutput.cs;fp=c_sharp%2Fsrc%2Forg%2Fldk%2Fstructs%2FTxRemoveOutput.cs;h=b5d15bf67f4d4e20b7543d38e9c8a6b9b56feeff;hb=3d1f246d05172683acd3b81836de4e4e9f0c1afd;hp=e229b274d932c5ffd58dc55c1b41dc2f29703fef;hpb=a32b8843c44637ebd82c83390d17db573b972153;p=ldk-java diff --git a/c_sharp/src/org/ldk/structs/TxRemoveOutput.cs b/c_sharp/src/org/ldk/structs/TxRemoveOutput.cs index e229b274..b5d15bf6 100644 --- a/c_sharp/src/org/ldk/structs/TxRemoveOutput.cs +++ b/c_sharp/src/org/ldk/structs/TxRemoveOutput.cs @@ -84,6 +84,18 @@ public class TxRemoveOutput : CommonBase { return ret_hu_conv; } + /** + * Generates a non-cryptographic 64-bit hash of the TxRemoveOutput. + */ + public long hash() { + long ret = bindings.TxRemoveOutput_hash(this.ptr); + GC.KeepAlive(this); + return ret; + } + + public override int GetHashCode() { + return (int)this.hash(); + } /** * Checks if two TxRemoveOutputs contain equal inner contents. * This ignores pointers and is_owned flags and looks at the values in fields.