Merge rust-bitcoin/rust-bitcoin#790: Re-export psbt module from root level

b138428df7 Re-export public map types from root level (Tobin Harding)

Pull request description:

  We currently have the `map` module private but containing a bunch of types that are needed in the public API (specifically in a `PartiallySignedTransaction`).

  To give access to them re-export the `util::psbt` module at the root level.

  Found while testing `master` with `rust-miniscript`.

ACKs for top commit:
  sanket1729:
    utACK b138428df7
  Kixunil:
    ACK b138428df7
  RCasatta:
    ACK b138428df7
  dr-orlovsky:
    ACK b138428df7

Tree-SHA512: 36fc8595164c4975abdadb6c8149ef27686a2d681a1815379f91b1bd36f8a56ceaa7faed5979ba6869823684790721a16a0c41e662c6227a09cd0ba576a0a181
This commit is contained in:
Riccardo Casatta 2022-01-19 12:17:54 +01:00
commit 1f0810ad6e
No known key found for this signature in database
GPG Key ID: FD986A969E450397
2 changed files with 2 additions and 1 deletions

View File

@ -139,6 +139,7 @@ pub use util::sighash::SchnorrSigHashType;
pub use util::ecdsa::{self, EcdsaSig, EcdsaSigError};
pub use util::schnorr::{self, SchnorrSig, SchnorrSigError};
pub use util::key::{PrivateKey, PublicKey, XOnlyPublicKey, KeyPair};
pub use util::psbt;
#[allow(deprecated)]
pub use blockdata::transaction::SigHashType;

View File

@ -39,7 +39,7 @@ mod macros;
pub mod serialize;
mod map;
pub use self::map::{Input, Output, TapTree};
pub use self::map::{Input, Output, TapTree, PsbtSigHashType};
use self::map::Map;
use util::bip32::{ExtendedPubKey, KeySource};