OkpPublicKey.fromPublic constructor
OkpPublicKey.fromPublic(
- String curve,
- dynamic public, {
- 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");
}
}