Merge rust-bitcoin/rust-bitcoin#1988: Export all hash types
7bbdd9b2af
Export all hash types (Tobin C. Harding) Pull request description: During the 0.30.0 release we removed the re-exports of hash types. This upset some folk and since the aim of our re-exports is not exactly clean as well as the fact that the public API surface is not yet fixed just re-export all the hash types at the crate root again. This is #1792 but does not use a wildcard and also grabs the other hashes that we recently moved. ACKs for top commit: apoelstra: ACK7bbdd9b2af
sanket1729: ACK7bbdd9b2af
Tree-SHA512: addfb617fae2fce12eb9d198ffeb1b0c99792dfd757222c21c62bd4b408432de5dc93c42da7d886b43c29b2c34bd318573e813f567a29080fc264ee7beba0f70
This commit is contained in:
commit
9dbefc6f85
|
@ -140,16 +140,23 @@ pub use crate::blockdata::weight::Weight;
|
||||||
pub use crate::blockdata::witness::{self, Witness};
|
pub use crate::blockdata::witness::{self, Witness};
|
||||||
pub use crate::blockdata::{constants, opcodes};
|
pub use crate::blockdata::{constants, opcodes};
|
||||||
pub use crate::consensus::encode::VarInt;
|
pub use crate::consensus::encode::VarInt;
|
||||||
|
pub use crate::crypto::ecdsa;
|
||||||
pub use crate::crypto::key::{
|
pub use crate::crypto::key::{
|
||||||
self, PrivateKey, PubkeyHash, PublicKey, WPubkeyHash, XOnlyPublicKey,
|
self, PrivateKey, PubkeyHash, PublicKey, WPubkeyHash, XOnlyPublicKey,
|
||||||
};
|
};
|
||||||
pub use crate::crypto::{ecdsa, sighash};
|
pub use crate::crypto::sighash::{self, LegacySighash, SegwitV0Sighash, TapSighash, TapSighashTag};
|
||||||
pub use crate::hash_types::{BlockHash, Txid, Wtxid};
|
pub use crate::hash_types::{
|
||||||
|
BlockHash, FilterHash, FilterHeader, TxMerkleNode, Txid, WitnessCommitment, Wtxid,
|
||||||
|
XpubIdentifier,
|
||||||
|
};
|
||||||
pub use crate::merkle_tree::MerkleBlock;
|
pub use crate::merkle_tree::MerkleBlock;
|
||||||
pub use crate::network::Network;
|
pub use crate::network::Network;
|
||||||
pub use crate::pow::{CompactTarget, Target, Work};
|
pub use crate::pow::{CompactTarget, Target, Work};
|
||||||
pub use crate::psbt::Psbt;
|
pub use crate::psbt::Psbt;
|
||||||
pub use crate::sighash::{EcdsaSighashType, TapSighashType};
|
pub use crate::sighash::{EcdsaSighashType, TapSighashType};
|
||||||
|
pub use crate::taproot::{
|
||||||
|
TapBranchTag, TapLeafHash, TapLeafTag, TapNodeHash, TapTweakHash, TapTweakTag,
|
||||||
|
};
|
||||||
|
|
||||||
#[cfg(not(feature = "std"))]
|
#[cfg(not(feature = "std"))]
|
||||||
mod io_extras {
|
mod io_extras {
|
||||||
|
|
Loading…
Reference in New Issue