bitcoin-psbt 0.1.16-alpha.0

tools for working with partially signed transactions
Documentation
crate::ix!();

/**
  | Counts the unsigned inputs of a PSBT.
  |
  */
pub fn count_psbt_unsigned_inputs(psbt: &PartiallySignedTransaction) -> usize {
    
    let mut count: usize = 0;

    for input in psbt.inputs.iter() {

        if !psbt_input_signed(input) {
            count += 1;
        }
    }

    count
}