MoneroAccount.fromBip44PrivateKey constructor
MoneroAccount.fromBip44PrivateKey(
- List<
int> privKey, { - MoneroCoins coinType = MoneroCoins.moneroMainnet,
Factory method to create a Monero instance from a BIP44 private key.
Given a privKey and an optional coinType, this method constructs a Monero instance
with the associated keys and configurations.
Implementation
factory MoneroAccount.fromBip44PrivateKey(
List<int> privKey, {
MoneroCoins coinType = MoneroCoins.moneroMainnet,
}) {
final key = MoneroPrivateKey.fromBip44(privKey);
return MoneroAccount.fromPrivateSpendKey(key.key, coinType: coinType);
}