fromMnemonic static method

Future<Keypair> fromMnemonic(
  1. String mnemonic
)

Implementation

static Future<Keypair> fromMnemonic(String mnemonic) async {
  Ed25519HDKeyPair x = await Ed25519HDKeyPair.fromMnemonic(mnemonic, account: 0);
  Keypair kp = await _fromEd25519HDKeyPair(x);

  return _create(kp.secretKey, mnemonic);
}