fromPhrase static method

Future<ICPSigner> fromPhrase(
  1. String phrase, {
  2. String passphrase = '',
  3. int? index = 0,
  4. List<int>? icPath = icBasePath,
  5. CurveType curveType = CurveType.ed25519,
})

Implementation

static Future<ICPSigner> fromPhrase(
  String phrase, {
  String passphrase = '',
  int? index = 0,
  List<int>? icPath = icBasePath,
  CurveType curveType = CurveType.ed25519,
}) async {
  final ICPAccount acc = await ICPAccount.fromPhrase(
    phrase,
    passphrase: passphrase,
    index: index,
    icPath: icPath,
    curveType: curveType,
  );
  return ICPSigner._()
    .._phrase = phrase
    .._index = index
    .._acc = acc;
}