Re-export all key types under `util::key`. Deprecate other exports.
This commit is contained in:
parent
b2de2bc33d
commit
2d9de78725
|
@ -138,10 +138,7 @@ pub use util::sighash::SchnorrSigHashType;
|
||||||
|
|
||||||
pub use util::ecdsa::{self, EcdsaSig, EcdsaSigError};
|
pub use util::ecdsa::{self, EcdsaSig, EcdsaSigError};
|
||||||
pub use util::schnorr::{self, SchnorrSig, SchnorrSigError};
|
pub use util::schnorr::{self, SchnorrSig, SchnorrSigError};
|
||||||
#[deprecated(since = "0.26.1", note = "Please use `ecdsa::PrivateKey` instead")]
|
pub use util::key::{PrivateKey, PublicKey, XOnlyPublicKey, KeyPair};
|
||||||
pub use util::ecdsa::PrivateKey;
|
|
||||||
#[deprecated(since = "0.26.1", note = "Please use `ecdsa::PublicKey` instead")]
|
|
||||||
pub use util::ecdsa::PublicKey;
|
|
||||||
#[allow(deprecated)]
|
#[allow(deprecated)]
|
||||||
pub use blockdata::transaction::SigHashType;
|
pub use blockdata::transaction::SigHashType;
|
||||||
|
|
||||||
|
|
|
@ -16,8 +16,8 @@
|
||||||
//! This module provides keys used in Bitcoin that can be roundtrip (de)serialized.
|
//! This module provides 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};
|
pub use util::ecdsa::{PrivateKey, PublicKey};
|
||||||
|
pub use secp256k1::{XOnlyPublicKey, KeyPair};
|
||||||
|
|
||||||
use core::fmt;
|
use core::fmt;
|
||||||
#[cfg(feature = "std")] use std::error;
|
#[cfg(feature = "std")] use std::error;
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
use core::fmt;
|
use core::fmt;
|
||||||
use prelude::*;
|
use prelude::*;
|
||||||
|
|
||||||
|
#[deprecated(since = "0.28.0", note = "Please use `util::key` instead")]
|
||||||
pub use secp256k1::{XOnlyPublicKey, KeyPair};
|
pub use secp256k1::{XOnlyPublicKey, KeyPair};
|
||||||
use secp256k1::{self, Secp256k1, Verification, constants};
|
use secp256k1::{self, Secp256k1, Verification, constants};
|
||||||
use hashes::Hash;
|
use hashes::Hash;
|
||||||
|
|
Loading…
Reference in New Issue