Skip to content

Commit

Permalink
Add PSBT alias
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
tcharding committed Apr 17, 2022
1 parent 8ca18f7 commit f92854a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/util/psbt/mod.rs
Expand Up @@ -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))]
Expand Down

0 comments on commit f92854a

Please sign in to comment.