public static string GetPublicAddress(string privateKey, TronNetwork network = TronNetwork.MainNet) { var key = new TronECKey(privateKey.HexToByteArray(), true, network); return(key.GetPublicAddress()); }
public ITronAccount GenerateAccount() { var tronKey = TronECKey.GenerateKey(_options.Value.Network); return(new TronAccount(tronKey)); }
public TronECKey GenerateKey() { var tronKey = TronECKey.GenerateKey(_options.Value.Network); return(tronKey); }