[C#] Update auto-generated files
[ldk-java] / c_sharp / src / org / ldk / structs / NodeId.cs
index ab04315695f3f2a99d69574845e1b78c383366fb..b4924b5d0157cc5a2f1d76b5bf3a0f94c4d925cf 100644 (file)
@@ -55,7 +55,18 @@ public class NodeId : CommonBase {
        }
 
        /**
-        * Checks if two NodeIds contain equal inner contents.
+        * Get the public key from this NodeId
+        */
+       public Result_PublicKeyErrorZ as_pubkey() {
+               long ret = bindings.NodeId_as_pubkey(this.ptr);
+               GC.KeepAlive(this);
+               if (ret >= 0 && ret <= 4096) { return null; }
+               Result_PublicKeyErrorZ ret_hu_conv = Result_PublicKeyErrorZ.constr_from_ptr(ret);
+               return ret_hu_conv;
+       }
+
+       /**
+        * Generates a non-cryptographic 64-bit hash of the NodeId.
         */
        public long hash() {
                long ret = bindings.NodeId_hash(this.ptr);