ICPSigner.fromPhrase constructor

ICPSigner.fromPhrase(
  1. String phrase, {
  2. String passphase = "",
  3. int? index = 0,
  4. List<int>? icPath = IC_BASE_PATH,
  5. CurveType curveType = CurveType.ed25519,
})

Implementation

ICPSigner.fromPhrase(
  String phrase, {
  String passphase = "",
  int? index = 0,
  List<int>? icPath = IC_BASE_PATH,
  CurveType curveType = CurveType.ed25519,
}) {
  _phrase = phrase;
  _index ??= index;
  _acc = ICPAccount.fromPhrase(
    _phrase!,
    passphase: passphase,
    index: _index!,
    icPath: icPath,
    curveType: curveType,
  );
}