Export all hash types
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.
This commit is contained in:
parent
29af523beb
commit
7bbdd9b2af
|
@ -140,16 +140,23 @@ pub use crate::blockdata::weight::Weight;
|
|||
pub use crate::blockdata::witness::{self, Witness};
|
||||
pub use crate::blockdata::{constants, opcodes};
|
||||
pub use crate::consensus::encode::VarInt;
|
||||
pub use crate::crypto::ecdsa;
|
||||
pub use crate::crypto::key::{
|
||||
self, PrivateKey, PubkeyHash, PublicKey, WPubkeyHash, XOnlyPublicKey,
|
||||
};
|
||||
pub use crate::crypto::{ecdsa, sighash};
|
||||
pub use crate::hash_types::{BlockHash, Txid, Wtxid};
|
||||
pub use crate::crypto::sighash::{self, LegacySighash, SegwitV0Sighash, TapSighash, TapSighashTag};
|
||||
pub use crate::hash_types::{
|
||||
BlockHash, FilterHash, FilterHeader, TxMerkleNode, Txid, WitnessCommitment, Wtxid,
|
||||
XpubIdentifier,
|
||||
};
|
||||
pub use crate::merkle_tree::MerkleBlock;
|
||||
pub use crate::network::Network;
|
||||
pub use crate::pow::{CompactTarget, Target, Work};
|
||||
pub use crate::psbt::Psbt;
|
||||
pub use crate::sighash::{EcdsaSighashType, TapSighashType};
|
||||
pub use crate::taproot::{
|
||||
TapBranchTag, TapLeafHash, TapLeafTag, TapNodeHash, TapTweakHash, TapTweakTag,
|
||||
};
|
||||
|
||||
#[cfg(not(feature = "std"))]
|
||||
mod io_extras {
|
||||
|
|
Loading…
Reference in New Issue