Skip to content

Commit

Permalink
Doc v2::Psbt::into_psbt_v0
Browse files Browse the repository at this point in the history
  • Loading branch information
DanGould committed Oct 6, 2024
1 parent 4313646 commit 7256a98
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/v2/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,11 @@ impl Updater {
}

/// Converts the inner PSBT v2 to a PSBT v0.
///
/// Conversion is lossy because PSBT v2 introduced global types not present in v0.
/// See [BIP-370] for a list of differences.
///
/// [BIP-370]: <https://github.com/bitcoin/bips/blob/master/bip-0370.mediawiki#specification>
pub fn into_psbt_v0(self) -> v0::Psbt {
let unsigned_tx =
self.0.unsigned_tx().expect("Updater guarantees lock time can be determined");
Expand Down

0 comments on commit 7256a98

Please sign in to comment.