[Java] Update auto-generated bindings to LDK 0.0.123
[ldk-java] / src / main / java / org / ldk / structs / NodeId.java
index 830cfdc322e07c2da8fe6258a051e27dedde7faa..73e903f9e0a603b93b4cfd3e8de9bfce59aef231 100644 (file)
@@ -50,6 +50,17 @@ public class NodeId extends CommonBase {
                return ret_hu_conv;
        }
 
+       /**
+        * Create a new NodeId from a slice of bytes
+        */
+       public static Result_NodeIdDecodeErrorZ from_slice(byte[] bytes) {
+               long ret = bindings.NodeId_from_slice(bytes);
+               Reference.reachabilityFence(bytes);
+               if (ret >= 0 && ret <= 4096) { return null; }
+               Result_NodeIdDecodeErrorZ ret_hu_conv = Result_NodeIdDecodeErrorZ.constr_from_ptr(ret);
+               return ret_hu_conv;
+       }
+
        /**
         * Get the public key slice from this NodeId
         */