fromMnemonics static method

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

Generate a keypair from mnemonics string.

Implementation

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