fromMnemonics static method

Ed25519Keypair fromMnemonics(
  1. String mnemonics, {
  2. int accountIndex = 0,
  3. int addressIndex = 0,
  4. int changeIndex = 0,
})

Generate a keypair from mnemonics string.

Implementation

static Ed25519Keypair fromMnemonics(String mnemonics,
    {int accountIndex = 0, int addressIndex = 0, int changeIndex = 0}) {
  String path = "m/44'/784'/$accountIndex'/$changeIndex'/$addressIndex'";
  return deriveKeypair(path, mnemonics);
}