Skip to content

Commit

Permalink
crypto_box: derive Copy for PublicKey (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
dfaust authored Dec 10, 2024
1 parent 08aeb28 commit 3780427
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto_box/src/public_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use serdect::serde::{de, ser, Deserialize, Serialize};
/// A `crypto_box` public key.
///
/// This type can be serialized if the `serde` feature is enabled.
#[derive(Clone, Debug, Eq, PartialEq, Hash)]
#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)]
pub struct PublicKey(pub(crate) MontgomeryPoint);

impl PublicKey {
Expand Down

0 comments on commit 3780427

Please sign in to comment.