bip32HdWallet static method

BIP32 bip32HdWallet(
  1. String mnemonic,
  2. String path, [
  3. NetworkType? networkType
])

Implementation

static bip32.BIP32 bip32HdWallet(String mnemonic, String path,
    [bip32.NetworkType? networkType]) {
  final seed = mnemonicToSeed(mnemonic);
  bip32.NetworkType network = networkType ?? _BITCOIN;
  final keyChain = bip32.BIP32.fromSeed(seed, network);
  return keyChain.derivePath(path);
}