IcpCoin.fromPrivateKey constructor

IcpCoin.fromPrivateKey(
  1. dynamic privateKey, [
  2. WalletSetting? setting,
  3. IcpWalletType? walletType
])

Implementation

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