getRawPublicKey method
Implementation
Uint8List getRawPublicKey(int keyType) {
if (Key.ellipticCurveDSA(keyType)) return getECDSAPublicKey().toRaw();
switch (keyType) {
case Key.ED25519:
return getEd25519PublicKey().toRaw();
case Key.RSA:
return getRSAPublicKey().toRaw();
default:
throw FormatException('key type $keyType');
}
}