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]
|
#[macro_use]
|
||||||
mod secret;
|
mod secret;
|
||||||
mod context;
|
mod context;
|
||||||
|
mod key;
|
||||||
|
|
||||||
pub mod constants;
|
pub mod constants;
|
||||||
pub mod ecdh;
|
pub mod ecdh;
|
||||||
pub mod key;
|
|
||||||
pub mod schnorrsig;
|
pub mod schnorrsig;
|
||||||
#[cfg(feature = "recovery")]
|
#[cfg(feature = "recovery")]
|
||||||
pub mod recovery;
|
pub mod recovery;
|
||||||
|
@ -154,6 +155,7 @@ mod serde_util;
|
||||||
|
|
||||||
pub use key::SecretKey;
|
pub use key::SecretKey;
|
||||||
pub use key::PublicKey;
|
pub use key::PublicKey;
|
||||||
|
pub use key::ONE_KEY;
|
||||||
pub use context::*;
|
pub use context::*;
|
||||||
use core::marker::PhantomData;
|
use core::marker::PhantomData;
|
||||||
use core::ops::Deref;
|
use core::ops::Deref;
|
||||||
|
|
|
@ -90,7 +90,7 @@ impl SecretKey {
|
||||||
/// # Example
|
/// # Example
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// use secp256k1::key::ONE_KEY;
|
/// use secp256k1::ONE_KEY;
|
||||||
/// let key = ONE_KEY;
|
/// let key = ONE_KEY;
|
||||||
/// // Normal display hides value
|
/// // Normal display hides value
|
||||||
/// assert_eq!(
|
/// assert_eq!(
|
||||||
|
@ -123,7 +123,7 @@ impl KeyPair {
|
||||||
/// # Example
|
/// # Example
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// use secp256k1::key::ONE_KEY;
|
/// use secp256k1::ONE_KEY;
|
||||||
/// use secp256k1::schnorrsig::KeyPair;
|
/// use secp256k1::schnorrsig::KeyPair;
|
||||||
/// use secp256k1::Secp256k1;
|
/// use secp256k1::Secp256k1;
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in New Issue