OkpPrivateKey.fromSecret constructor

OkpPrivateKey.fromSecret(
  1. String curve,
  2. dynamic secret, [
  3. dynamic kid
])

Implementation

factory OkpPrivateKey.fromSecret(String curve, dynamic secret, [kid]) {
  if (curve == 'Ed448') {
    return OkpPrivateKey._ed448FromSecret(secret, kid);
  } else {
    throw UnsupportedError("Curve is currently unsupported");
  }
}