Skip to content

Commit

Permalink
Making old ECDSA key type paths depeicated
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Apr 12, 2021
1 parent 664b09c commit 230813b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,14 @@ pub use util::address::AddressType;
pub use util::amount::Amount;
pub use util::amount::Denomination;
pub use util::amount::SignedAmount;
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;
pub use util::merkleblock::MerkleBlock;

#[cfg(all(test, feature = "unstable"))] use tests::EmptyWrite;

Expand Down
1 change: 1 addition & 0 deletions src/util/key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 230813b

Please sign in to comment.