recoverFromIISeedPhrase static method

Future<Ed25519KeyIdentityRecoveredFromII> recoverFromIISeedPhrase(
  1. String phrase
)

Implementation

static Future<Ed25519KeyIdentityRecoveredFromII> recoverFromIISeedPhrase(
  String phrase,
) async {
  final userNumber = extractUserNumber(phrase);
  final mne = dropLeadingUserNumber(phrase);
  final identity = await fromMnemonicWithoutValidation(
    mne,
    icDerivationPath,
  );
  return Ed25519KeyIdentityRecoveredFromII(
    userNumber: userNumber,
    identity: identity,
  );
}