fromPhrase static method
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;
}