OkpPublicKey.fromPublic constructor

OkpPublicKey.fromPublic(
  1. String curve,
  2. dynamic public, {
  3. dynamic kid,
})

Implementation

factory OkpPublicKey.fromPublic(String curve, dynamic public, {kid}) {
  if (curve == 'Ed448') {
    return OkpPublicKey._ed448FromPublic(public, kid);
  } else {
    throw UnsupportedError("Curve is currently unsupported");
  }
}