getETHAddressFromMnemonic function
- required String mnemonic,
Implementation
String getETHAddressFromMnemonic({
required String mnemonic,
}) {
final seed = bip39.mnemonicToSeed(mnemonic);
final publicKey = derivePublicKeyETH(seed);
final publicKeyWithoutPrefix = keccak256(publicKey.sublist(1));
final address = '0x${publicKeyWithoutPrefix.sublist(12).toHex}';
return address;
}