fromSeed static method

Future<ICPSigner> fromSeed(
  1. Uint8List seed, {
  2. int? index = 0,
  3. CurveType curveType = CurveType.ed25519,
})

Implementation

static Future<ICPSigner> fromSeed(
  Uint8List seed, {
  int? index = 0,
  CurveType curveType = CurveType.ed25519,
}) async {
  final ICPAccount acc = await ICPAccount.fromSeed(
    seed,
    index: index,
    curveType: curveType,
  );
  return ICPSigner._()
    .._index = index
    .._acc = acc;
}