*/
public static NodeId from_pubkey(byte[] pubkey) {
long ret = bindings.NodeId_from_pubkey(InternalUtils.check_arr_len(pubkey, 33));
*/
public static NodeId from_pubkey(byte[] pubkey) {
long ret = bindings.NodeId_from_pubkey(InternalUtils.check_arr_len(pubkey, 33));
/**
* Serialize the NodeId object into a byte array which can be read by NodeId_read
*/
public byte[] write() {
byte[] ret = bindings.NodeId_write(this.ptr);
/**
* Serialize the NodeId object into a byte array which can be read by NodeId_read
*/
public byte[] write() {
byte[] ret = bindings.NodeId_write(this.ptr);
if (ret >= 0 && ret <= 4096) { return null; }
Result_NodeIdDecodeErrorZ ret_hu_conv = Result_NodeIdDecodeErrorZ.constr_from_ptr(ret);
return ret_hu_conv;
if (ret >= 0 && ret <= 4096) { return null; }
Result_NodeIdDecodeErrorZ ret_hu_conv = Result_NodeIdDecodeErrorZ.constr_from_ptr(ret);
return ret_hu_conv;