Skip to content

Commit 4816df0

Browse files
committed
Add PSBT alias
Programmers are inherently lazy and for good reason. I'm yet to see anyone write `PartiallySignedTransaction` in code that uses `rust-bitcoin`, its too obvious to add a type alias for PSBTs, let's just do it ourselves to save everyone else having to do so. Add public type alias `Psbt` for `PartiallySignedTransaction`.
1 parent 8efc9a1 commit 4816df0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/util/psbt/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ use self::map::Map;
4646

4747
use util::bip32::{ExtendedPubKey, KeySource};
4848

49+
/// Partially signed transaction, commonly referred to as a PSBT.
50+
pub type Psbt = PartiallySignedTransaction;
51+
4952
/// A Partially Signed Transaction.
5053
#[derive(Debug, Clone, PartialEq, Eq)]
5154
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]

0 commit comments

Comments
 (0)