getPublicKey method
Implementation
Future<PublicKey> getPublicKey() async {
Uint8List pub;
if (algorithm == KeyType.eddsa) {
pub = await Eddsa.pub(raw);
} else {
pub = await Ecdsa.pub(raw, parameters.curve, 1);
}
return PublicKey(pub, algorithm: algorithm, parameters: parameters);
}