OkpPrivateKey.fromSecret constructor
OkpPrivateKey.fromSecret(
- String curve,
- dynamic secret, [
- 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");
}
}