Making old ECDSA key type paths depeicated

This commit is contained in:
Dr Maxim Orlovsky 2021-04-12 13:31:09 +02:00
parent 664b09cdfd
commit 230813b578
No known key found for this signature in database
GPG Key ID: FFC0250947E5C6F7
2 changed files with 8 additions and 2 deletions

View File

@ -85,10 +85,15 @@ pub use util::address::AddressType;
pub use util::amount::Amount;
pub use util::amount::Denomination;
pub use util::amount::SignedAmount;
pub use util::ecdsa::PrivateKey;
pub use util::ecdsa::PublicKey;
pub use util::merkleblock::MerkleBlock;
pub use util::ecdsa;
pub use util::schnorr;
#[deprecated(since = "0.26.1", note = "Please use `ecdsa::PrivateKey` instead")]
pub use util::ecdsa::PrivateKey;
#[deprecated(since = "0.26.1", note = "Please use `ecdsa::PublicKey` instead")]
pub use util::ecdsa::PublicKey;
#[cfg(all(test, feature = "unstable"))] use tests::EmptyWrite;
#[cfg(all(test, feature = "unstable"))]

View File

@ -16,6 +16,7 @@
//! Keys used in Bitcoin that can be roundtrip (de)serialized.
//!
#[deprecated(since = "0.26.1", note = "Please use `util::ecdsa` instead")]
pub use util::ecdsa::{PrivateKey, PublicKey};
use std::fmt;