Skip to content

Commit 90ee63d

Browse files
committed
Re-org keys and ecdsa mods - pt.2
1 parent a73ceea commit 90ee63d

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ pub use util::amount::SignedAmount;
136136
pub use util::merkleblock::MerkleBlock;
137137
pub use util::sighash::SchnorrSigHashType;
138138

139-
pub use util::ecdsa::{self, EcdsaSig, EcdsaSigError};
139+
pub use util::key::{self, EcdsaSig, EcdsaSigError};
140140
pub use util::schnorr::{self, SchnorrSig, SchnorrSigError};
141141
pub use util::key::{PrivateKey, PublicKey, XOnlyPublicKey, KeyPair};
142142
#[allow(deprecated)]

src/util/ecdsa.rs renamed to src/util/key.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
1212
//
1313

14-
//! ECDSA Bitcoin keys.
14+
//! Bitcoin keys.
1515
//!
16-
//! This module provides ECDSA keys used in Bitcoin that can be roundtrip
16+
//! This module provides keys used in Bitcoin that can be roundtrip
1717
//! (de)serialized.
1818
1919
pub use secp256k1::{XOnlyPublicKey, KeyPair};

src/util/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
//! Functions needed by all parts of the Bitcoin library.
1818
//!
1919
20-
pub mod ecdsa;
20+
pub mod key;
2121
pub mod schnorr;
2222
pub mod address;
2323
pub mod amount;
@@ -36,12 +36,12 @@ pub mod sighash;
3636

3737
pub(crate) mod endian;
3838

39-
pub mod key {
40-
//! Bitcoin keys.
39+
pub mod ecdsa {
40+
//! ECDSA Bitcoin signatures.
4141
//!
42-
//! This module provides keys used in Bitcoin that can be roundtrip (de)serialized.
42+
//! This module provides ECDSA signatures used Bitcoin that can be roundtrip (de)serialized.
4343
44-
pub use super::ecdsa::{XOnlyPublicKey, PublicKey, PrivateKey, KeyPair, Error};
44+
pub use super::key::{EcdsaSig, EcdsaSigError};
4545
}
4646

4747
use prelude::*;

0 commit comments

Comments
 (0)