toWIFByPath method

Future<Uint8List> toWIFByPath({
  1. String passphrase = '',
  2. int index = 0,
  3. required String basePath,
})

Implementation

Future<Uint8List> toWIFByPath({
  String passphrase = '',
  int index = 0,
  required String basePath,
}) async {
  final seed = await toSeed(passphrase: passphrase);
  return mnemonicSeedToKey(
    req: SeedToKeyReq(
      seed: seed,
      path: '$basePath/$index',
    ),
  );
}