[C#] Update auto-generated C# bindings
[ldk-java] / c_sharp / src / org / ldk / structs / NodeId.cs
index 0aa9014c1fa0305f02b33a7dceb3a04b17f51c15..b5b0522c707644e5c23ae57b6ea6447d6071ccc4 100644 (file)
@@ -56,6 +56,17 @@ public class NodeId : CommonBase {
                return ret_conv;
        }
 
+       /**
+        * Get the public key as an array from this NodeId
+        */
+       public byte[] as_array() {
+               long ret = bindings.NodeId_as_array(this.ptr);
+               GC.KeepAlive(this);
+               if (ret >= 0 && ret <= 4096) { return null; }
+               byte[] ret_conv = InternalUtils.decodeUint8Array(ret);
+               return ret_conv;
+       }
+
        /**
         * Get the public key from this NodeId
         */