Skip to content

Commit

Permalink
elliptic-curve: derive Clone on SecretBytes (#330)
Browse files Browse the repository at this point in the history
  • Loading branch information
tarcieri committed Oct 8, 2020
1 parent 10f448e commit 88cec74
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions elliptic-curve/src/secret_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ where
/// Newtype wrapper for [`FieldBytes`] which impls [`Zeroize`].
///
/// This allows it to fulfill the [`Zeroize`] bound on [`SecretValue::Secret`].
#[derive(Clone)]
pub struct SecretBytes<C: Curve>(FieldBytes<C>);

impl<C: Curve> From<FieldBytes<C>> for SecretBytes<C> {
Expand Down

0 comments on commit 88cec74

Please sign in to comment.