'How to find public address through private key on TRON

How can I find user public address from his private key ? Already I found a way to convert public to hex Address also private to hex and reverse but get stuck in this one !



Solution 1:[1]

for bitcoin you need use this package to find public key => dart_wif

print('hex :::::: ${HEX.encode(index.privateKey!)}');

WIF decoded = WIF(version: 128, privateKey: index.privateKey!, compressed: true);

String key = wif.encode(decoded);
print(key);

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 sajjad hajizadeh