@@ -435,13 +435,22 @@ pub trait PsbtExt {
435
435
/// See [finalizer::finalize_mall] if you want to allow malleable satisfactions
436
436
///
437
437
/// For finalizing individual inputs, see also [`PsbtExt::finalize_inp`]
438
+ ///
439
+ /// # Errors:
440
+ ///
441
+ /// - A vector of errors, one of each of failed finalized input
438
442
fn finalize_mut < C : secp256k1:: Verification > (
439
443
& mut self ,
440
444
secp : & secp256k1:: Secp256k1 < C > ,
441
445
) -> Result < ( ) , Vec < Error > > ;
442
446
443
447
/// Same as [`PsbtExt::finalize_mut`], but does not mutate the input psbt and
444
448
/// returns a new psbt
449
+ ///
450
+ /// # Errors:
451
+ ///
452
+ /// - Returns a mutated psbt with all inputs `finalize_mut` could finalize
453
+ /// - A vector of input errors, one of each of failed finalized input
445
454
fn finalize < C : secp256k1:: Verification > (
446
455
self ,
447
456
secp : & secp256k1:: Secp256k1 < C > ,
@@ -462,13 +471,22 @@ pub trait PsbtExt {
462
471
/// Same as [`PsbtExt::finalize_mut`], but only tries to finalize a single input leaving other
463
472
/// inputs as is. Use this when not all of inputs that you are trying to
464
473
/// satisfy are miniscripts
474
+ ///
475
+ /// # Errors:
476
+ ///
477
+ /// - Input error detailing why the finalization failed. The psbt is not mutated when the finalization fails
465
478
fn finalize_inp_mut < C : secp256k1:: Verification > (
466
479
& mut self ,
467
480
secp : & secp256k1:: Secp256k1 < C > ,
468
481
index : usize ,
469
482
) -> Result < ( ) , Error > ;
470
483
471
484
/// Same as [`PsbtExt::finalize_inp_mut`], but does not mutate the psbt and returns a new one
485
+ ///
486
+ /// # Errors:
487
+ /// Returns a tuple containing
488
+ /// - Original psbt
489
+ /// - Input Error detailing why the input finalization failed
472
490
fn finalize_inp < C : secp256k1:: Verification > (
473
491
self ,
474
492
secp : & secp256k1:: Secp256k1 < C > ,
0 commit comments