cryptography/mnemonics library
Functions
-
generateMnemonic(
{int strength = 128}) → String -
isValidBIP32Path(
String path) → bool - Parse and validate a path that is compliant to BIP-32 in form m/54'/784'/{account_index}'/{change_index}/{address_index} for Secp256k1 and m/74'/784'/{account_index}'/{change_index}/{address_index} for Secp256r1.
-
isValidHardenedPath(
String path, [int purpose = 44]) → bool -
purposeis 44 for Ed25519, 94 for ML-DSA-65. -
isValidMnemonics(
String mnemonics) → bool -
mnemonicToSeed(
String mnemonics) → Uint8List - Uses KDF to derive 64 bytes of key data from mnemonic with empty password.
-
mnemonicToSeedHex(
String mnemonics) → String -
normalizeMnemonics(
String mnemonics) → String - bip39 only accepts and hashes this form.