Re-org keys and ecdsa mods - pt.2

This commit is contained in:
Dr Maxim Orlovsky 2022-01-09 07:46:24 +01:00
parent b9170162d5
commit d1c2213d3b
3 changed files with 8 additions and 8 deletions

View File

@ -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)]

View File

@ -11,9 +11,9 @@
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
//
//! 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};

View File

@ -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::*;