diff --git a/src/lib.rs b/src/lib.rs index 5005744c..7fce7f3b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -136,7 +136,7 @@ pub use util::amount::SignedAmount; pub use util::merkleblock::MerkleBlock; pub use util::sighash::SchnorrSigHashType; -pub use util::ecdsa::{self, EcdsaSig, EcdsaSigError}; +pub use util::key::{self, EcdsaSig, EcdsaSigError}; pub use util::schnorr::{self, SchnorrSig, SchnorrSigError}; pub use util::key::{PrivateKey, PublicKey, XOnlyPublicKey, KeyPair}; #[allow(deprecated)] diff --git a/src/util/ecdsa.rs b/src/util/key.rs similarity index 99% rename from src/util/ecdsa.rs rename to src/util/key.rs index 8a902fea..82937357 100644 --- a/src/util/ecdsa.rs +++ b/src/util/key.rs @@ -11,9 +11,9 @@ // If not, see . // -//! ECDSA Bitcoin keys. +//! Bitcoin keys. //! -//! This module provides ECDSA keys used in Bitcoin that can be roundtrip +//! This module provides keys used in Bitcoin that can be roundtrip //! (de)serialized. pub use secp256k1::{XOnlyPublicKey, KeyPair}; diff --git a/src/util/mod.rs b/src/util/mod.rs index 97fc17e3..6423ae39 100644 --- a/src/util/mod.rs +++ b/src/util/mod.rs @@ -17,7 +17,7 @@ //! Functions needed by all parts of the Bitcoin library. //! -pub mod ecdsa; +pub mod key; pub mod schnorr; pub mod address; pub mod amount; @@ -36,12 +36,12 @@ pub mod sighash; pub(crate) mod endian; -pub mod key { - //! Bitcoin keys. +pub mod ecdsa { + //! ECDSA Bitcoin signatures. //! - //! This module provides keys used in Bitcoin that can be roundtrip (de)serialized. + //! This module provides ECDSA signatures used Bitcoin that can be roundtrip (de)serialized. - pub use super::ecdsa::{XOnlyPublicKey, PublicKey, PrivateKey, KeyPair, Error}; + pub use super::key::{EcdsaSig, EcdsaSigError}; } use prelude::*;