Promote rust-miniscript finalizer
This commit is contained in:
parent
16bf6f68dd
commit
b8bd31d5a8
|
@ -234,6 +234,7 @@ impl WatchOnly {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Finalizes the PSBT, in BIP174 parlance this is the 'Finalizer'.
|
/// 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> {
|
fn finalize_psbt(&self, mut psbt: Psbt) -> Result<Psbt> {
|
||||||
use bitcoin::util::psbt::serialize::Serialize;
|
use bitcoin::util::psbt::serialize::Serialize;
|
||||||
|
|
||||||
|
|
|
@ -415,6 +415,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.
|
/// 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 {
|
fn finalize_psbt(mut psbt: Psbt) -> Psbt {
|
||||||
use bitcoin::util::psbt::serialize::Serialize;
|
use bitcoin::util::psbt::serialize::Serialize;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue