File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -263,7 +263,7 @@ pub mod descriptor;
263
263
#[ cfg( feature = "test-md-docs" ) ]
264
264
mod doctest;
265
265
pub mod keys;
266
- pub ( crate ) mod psbt;
266
+ pub mod psbt;
267
267
pub ( crate ) mod types;
268
268
pub mod wallet;
269
269
Original file line number Diff line number Diff line change 9
9
// You may not use this file except in accordance with one or both of these
10
10
// licenses.
11
11
12
+ //! Additional functions on the `rust-bitcoin` `PartiallySignedTransaction` structure.
13
+
12
14
use crate :: FeeRate ;
13
15
use bitcoin:: util:: psbt:: PartiallySignedTransaction as Psbt ;
14
16
use bitcoin:: TxOut ;
15
17
18
+ // TODO upstream the functions here to `rust-bitcoin`?
19
+
20
+ /// Trait to add functions to extract utxos and calculate fees.
16
21
pub trait PsbtUtils {
22
+ /// Get the `TxOut` for the specified input index, if it doesn't exist in the PSBT `None` is returned.
17
23
fn get_utxo_for ( & self , input_index : usize ) -> Option < TxOut > ;
18
24
19
25
/// The total transaction fee amount, sum of input amounts minus sum of output amounts, in Sats.
You can’t perform that action at this time.
0 commit comments