deriveKeypair method

KeyPair deriveKeypair(
  1. String serviceName, {
  2. int index = 0,
  3. String pathSuffix = '',
})

Implementation

KeyPair deriveKeypair(
  String serviceName, {
  int index = 0,
  String pathSuffix = '',
}) {
  if (services[serviceName] == null) {
    throw Exception(
      "Service doesn't exist in the keychain",
    );
  }
  return deriveArchethicKeypair(
    seed,
    services[serviceName]!.derivationPath,
    index,
    curve: services[serviceName]!.curve,
    pathSuffix: pathSuffix,
  );
}