IcpCoin.fromPrivateKey constructor
IcpCoin.fromPrivateKey(
- dynamic privateKey, [
- WalletSetting? setting,
- 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;
}