- long ret = bindings.NetAddress_onion_v3(ed25519_pubkey, checksum, version, port);
- if (ret >= 0 && ret < 1024) { return null; }
- NetAddress ret_hu_conv = NetAddress.constr_from_ptr(ret);
+ long ret = bindings.NetAddress_onion_v3(InternalUtils.check_arr_len(ed25519_pubkey, 32), checksum, version, port);
+ Reference.reachabilityFence(ed25519_pubkey);
+ Reference.reachabilityFence(checksum);
+ Reference.reachabilityFence(version);
+ Reference.reachabilityFence(port);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ org.ldk.structs.NetAddress ret_hu_conv = org.ldk.structs.NetAddress.constr_from_ptr(ret);