- long ret = bindings.NodeId_from_pubkey(pubkey);
- if (ret >= 0 && ret < 1024) { return null; }
- NodeId ret_hu_conv = new NodeId(null, ret);
+ long ret = bindings.NodeId_from_pubkey(InternalUtils.check_arr_len(pubkey, 33));
+ if (ret >= 0 && ret <= 4096) { return null; }
+ NodeId ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new NodeId(null, ret); }