X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=c_sharp%2Fsrc%2Forg%2Fldk%2Fstructs%2FInvoiceRequestFeatures.cs;h=f3d15d0db5cf963ce48ce0b0ae6ab75b2958ab8c;hb=3d1f246d05172683acd3b81836de4e4e9f0c1afd;hp=fdbc49e7275209bdbbec39b283d47aa2b1159508;hpb=8de7213fbf663ff60322896282dad51e8ab2f001;p=ldk-java diff --git a/c_sharp/src/org/ldk/structs/InvoiceRequestFeatures.cs b/c_sharp/src/org/ldk/structs/InvoiceRequestFeatures.cs index fdbc49e7..f3d15d0d 100644 --- a/c_sharp/src/org/ldk/structs/InvoiceRequestFeatures.cs +++ b/c_sharp/src/org/ldk/structs/InvoiceRequestFeatures.cs @@ -50,6 +50,18 @@ public class InvoiceRequestFeatures : CommonBase { return ret_hu_conv; } + /** + * Generates a non-cryptographic 64-bit hash of the InvoiceRequestFeatures. + */ + public long hash() { + long ret = bindings.InvoiceRequestFeatures_hash(this.ptr); + GC.KeepAlive(this); + return ret; + } + + public override int GetHashCode() { + return (int)this.hash(); + } /** * Create a blank Features with no features set */