diff --git a/CHANGELOG.md b/CHANGELOG.md index bdbfb7a..52c376c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ Entries are listed in reverse chronological order. +# 2.0.0 + +* Remove `Copy` implementation from `SigningKey`. + # 1.2.0 * Add `to_bytes`/`as_bytes` for `VerificationKey`. diff --git a/Cargo.toml b/Cargo.toml index 7422667..46cdb13 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ name = "ed25519-consensus" # Before publishing: # - update CHANGELOG.md # - update html_root_url -version = "1.2.0" +version = "2.0.0" authors = ["Henry de Valence "] license = "MIT OR Apache-2.0" edition = "2018" diff --git a/src/lib.rs b/src/lib.rs index 3dc2d3c..655e3bc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,4 @@ -#![doc(html_root_url = "https://docs.rs/ed25519-consensus/1.2.0")] +#![doc(html_root_url = "https://docs.rs/ed25519-consensus/2.0.0")] #![doc = include_str!("../README.md")] #![deny(missing_docs)] #![cfg_attr(not(feature = "std"), no_std)] diff --git a/src/signing_key.rs b/src/signing_key.rs index b4c0cba..4c51756 100644 --- a/src/signing_key.rs +++ b/src/signing_key.rs @@ -9,7 +9,7 @@ use crate::{Error, Signature, VerificationKey, VerificationKeyBytes}; /// An Ed25519 signing key. /// /// This is also called a secret key by other implementations. -#[derive(Copy, Clone)] +#[derive(Clone)] #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] #[cfg_attr(feature = "serde", serde(from = "SerdeHelper"))] #[cfg_attr(feature = "serde", serde(into = "SerdeHelper"))] diff --git a/tests/unit_tests.rs b/tests/unit_tests.rs index fcd5794..720b711 100644 --- a/tests/unit_tests.rs +++ b/tests/unit_tests.rs @@ -14,7 +14,7 @@ fn parsing() { // Most of these types don't implement Eq, so we check a round trip // conversion to bytes, using these as the reference points: - let sk_array: [u8; 32] = sk.into(); + let sk_array: [u8; 32] = sk.clone().into(); let pk_array: [u8; 32] = pk.into(); let pkb_array: [u8; 32] = pkb.into(); let sig_array: [u8; 64] = sig.into();