getRawPublicKey method

Uint8List getRawPublicKey(
  1. int keyType
)

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');
  }
}