Skip to content

Commit 03cec76

Browse files
committed
Re-export public map types from root level
We currently have the `map` module private but containing a bunch of types that are needed in the public API (specifically in a `PartiallySignedTransaction`). Re-export the publicly required types to the `psbt` module and then again at the root level of `rust-bitcoin` as we do for other types.
1 parent 60cc69a commit 03cec76

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ pub use util::sighash::SchnorrSigHashType;
139139
pub use util::ecdsa::{self, EcdsaSig, EcdsaSigError};
140140
pub use util::schnorr::{self, SchnorrSig, SchnorrSigError};
141141
pub use util::key::{PrivateKey, PublicKey, XOnlyPublicKey, KeyPair};
142+
pub use util::psbt;
142143
#[allow(deprecated)]
143144
pub use blockdata::transaction::SigHashType;
144145

src/util/psbt/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ mod macros;
3939
pub mod serialize;
4040

4141
mod map;
42-
pub use self::map::{Input, Output, TapTree};
42+
pub use self::map::{Input, Output, TapTree, PsbtSigHashType};
4343
use self::map::Map;
4444

4545
use util::bip32::{ExtendedPubKey, KeySource};

0 commit comments

Comments
 (0)