TrxCoin.fromPrivateKey constructor

TrxCoin.fromPrivateKey(
  1. dynamic privateKey, [
  2. WalletSetting? setting
])

Implementation

factory TrxCoin.fromPrivateKey(dynamic privateKey, [WalletSetting? setting]) {
  final wallet = TrxCoin(setting: setting);
  wallet.initFromPrivateKey(dynamicToUint8List(privateKey));
  return wallet;
}