Please tell me how to generate a public address from a private key in the TRON network?
final keyBytes = BytesUtils.fromHexString(privateKeyHex);
final privKey = Secp256k1PrivateKey.fromBytes(keyBytes);
final pubKey = privKey.publicKey.publicKey;
final pubBytes = pubKey.toBytes();
return Base58Encoder.encode(pubBytes);
// The result is incorrect