Skip to content

Commit

Permalink
Promote rust-miniscript finalizer
Browse files Browse the repository at this point in the history
  • Loading branch information
DanGould committed Oct 25, 2022
1 parent 457a0dd commit 421fe92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions bitcoin/examples/ecdsa-psbt.rs
Expand Up @@ -234,6 +234,7 @@ impl WatchOnly {
}

/// Finalizes the PSBT, in BIP174 parlance this is the 'Finalizer'.
/// This is just an example. For a production-ready PSBT Finalizer, use [rust-miniscript](https://docs.rs/miniscript/latest/miniscript/psbt/trait.PsbtExt.html#tymethod.finalize)
fn finalize_psbt(&self, mut psbt: Psbt) -> Result<Psbt> {
use bitcoin::util::psbt::serialize::Serialize;

Expand Down
1 change: 1 addition & 0 deletions bitcoin/tests/psbt.rs
Expand Up @@ -394,6 +394,7 @@ fn sign(mut psbt: Psbt, keys: BTreeMap<bitcoin::PublicKey, PrivateKey>) -> Psbt
}

/// Finalizes a PSBT accord to the Input Finalizer role described in BIP 174.
/// This is just a test. For a production-ready PSBT Finalizer, use [rust-miniscript](https://docs.rs/miniscript/latest/miniscript/psbt/trait.PsbtExt.html#tymethod.finalize)
fn finalize_psbt(mut psbt: Psbt) -> Psbt {
use bitcoin::util::psbt::serialize::Serialize;

Expand Down

0 comments on commit 421fe92

Please sign in to comment.