Make `key` module private
We re-export all structs residing in that module. There is no reason to expose the internal module structure of the library publicly.
This commit is contained in:
parent
96d2242f6a
commit
8e96abae39
|
@ -143,9 +143,10 @@ mod macros;
|
|||
#[macro_use]
|
||||
mod secret;
|
||||
mod context;
|
||||
mod key;
|
||||
|
||||
pub mod constants;
|
||||
pub mod ecdh;
|
||||
pub mod key;
|
||||
pub mod schnorrsig;
|
||||
#[cfg(feature = "recovery")]
|
||||
pub mod recovery;
|
||||
|
@ -154,6 +155,7 @@ mod serde_util;
|
|||
|
||||
pub use key::SecretKey;
|
||||
pub use key::PublicKey;
|
||||
pub use key::ONE_KEY;
|
||||
pub use context::*;
|
||||
use core::marker::PhantomData;
|
||||
use core::ops::Deref;
|
||||
|
|
|
@ -90,7 +90,7 @@ impl SecretKey {
|
|||
/// # Example
|
||||
///
|
||||
/// ```
|
||||
/// use secp256k1::key::ONE_KEY;
|
||||
/// use secp256k1::ONE_KEY;
|
||||
/// let key = ONE_KEY;
|
||||
/// // Normal display hides value
|
||||
/// assert_eq!(
|
||||
|
@ -123,7 +123,7 @@ impl KeyPair {
|
|||
/// # Example
|
||||
///
|
||||
/// ```
|
||||
/// use secp256k1::key::ONE_KEY;
|
||||
/// use secp256k1::ONE_KEY;
|
||||
/// use secp256k1::schnorrsig::KeyPair;
|
||||
/// use secp256k1::Secp256k1;
|
||||
///
|
||||
|
|
Loading…
Reference in New Issue