Add additional sighash related pubic exports

We already export some of the sighash related types, there are others
that are uniquely named that can also be exported. Doing so makes use of
the library more ergonomic because devs do not have to know where types
are defined.
This commit is contained in:
Tobin C. Harding 2022-06-29 14:48:19 +10:00
parent 0eff9eb94a
commit 29f21d6ff5
1 changed files with 3 additions and 2 deletions

View File

@ -101,7 +101,8 @@ pub use crate::blockdata::script::Script;
#[allow(deprecated)]
pub use crate::blockdata::transaction::SigHashType;
pub use crate::blockdata::transaction::{
EcdsaSighashType, OutPoint, Sequence, Transaction, TxIn, TxOut,
EcdsaSighashType, NonStandardSighashType, OutPoint, Sequence, SighashTypeParseError,
Transaction, TxIn, TxOut,
};
pub use crate::blockdata::witness::Witness;
pub use crate::consensus::encode::VarInt;
@ -113,7 +114,7 @@ pub use crate::util::ecdsa::{self, EcdsaSig, EcdsaSigError};
pub use crate::util::key::{KeyPair, PrivateKey, PublicKey, XOnlyPublicKey};
pub use crate::util::merkleblock::MerkleBlock;
pub use crate::util::schnorr::{self, SchnorrSig, SchnorrSigError};
pub use crate::util::sighash::SchnorrSighashType;
pub use crate::util::sighash::{SchnorrSighashType, SighashCache};
pub use crate::util::{psbt, Error};
#[cfg(not(feature = "std"))]