From f92854a80513e819a2da3175876c9e1ff9c05c99 Mon Sep 17 00:00:00 2001 From: Tobin Harding Date: Mon, 18 Apr 2022 07:21:19 +1000 Subject: [PATCH] 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`. --- src/util/psbt/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/util/psbt/mod.rs b/src/util/psbt/mod.rs index 4cf84ff698..9e5f7f25ae 100644 --- a/src/util/psbt/mod.rs +++ b/src/util/psbt/mod.rs @@ -46,6 +46,9 @@ use self::map::Map; use util::bip32::{ExtendedPubKey, KeySource}; +/// Partially signed transaction, commonly referred to as a PSBT. +pub type Psbt = PartiallySignedTransaction; + /// A Partially Signed Transaction. #[derive(Debug, Clone, PartialEq, Eq)] #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]