message: No Ticket: Better clone PublicKey
diff: @@ -209,7 +209,7 @@ impl Tagged<u8> for SecretKey {
  }
  /// A public asymmetric key.
  -#[derive(DataSize, Eq, PartialEq)]
  +#[derive(Clone, DataSize, Eq, PartialEq)]
  pub enum PublicKey {
  /// System public key.
  System,
  @@ -355,19 +355,6 @@ impl Tagged<u8> for PublicKey {
  }
  }
  -impl Clone for PublicKey {
  - fn clone(&self) -> Self {
  - match self {
  - PublicKey::System => PublicKey::System,
  - PublicKey::Ed25519(public_key) => PublicKey::Ed25519(*public_key),
  - PublicKey::Secp256k1(public_key) => {
  - let raw_bytes: [u8; SECP256K1_COMPRESSED_PUBLIC_KEY_LENGTH] = public_key.to_bytes();
  - Self::secp256k1_from_bytes(raw_bytes).unwrap()
  - }
  - }
  - }
  -}
  -
  impl ToBytes for PublicKey {
  fn to_bytes(&self) -> Result<Vec<u8>, bytesrepr::Error> {
  let mut buffer = bytesrepr::allocate_buffer(self)?;
  