derivePrivateKeyETH function

Uint8List derivePrivateKeyETH(
  1. Uint8List seed
)

Implementation

Uint8List derivePrivateKeyETH(Uint8List seed) {
  final node = bip32.BIP32.fromSeed(seed);

  final bip32.BIP32 childNode = node.derivePath(
    ethereumBip44HDPath.defaultPath,
  );
  return childNode.privateKey!;
}