diff --git a/src/lib.rs b/src/lib.rs index dc4092e..1a99aa7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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; diff --git a/src/secret.rs b/src/secret.rs index 34153c2..f7fc22e 100644 --- a/src/secret.rs +++ b/src/secret.rs @@ -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; ///