pub fn try_val_as_witness(val: &PSBTValue) -> Result<Witness, PSBTError> {
    let mut wit_bytes = &val.items()[..];
    let number = ser::read_compact_int(&mut wit_bytes)? as usize;
    Ok(WitnessStackItem::read_seq_from(
        &mut wit_bytes,
        ReadSeqMode::Exactly(number),
    )?)
}
/// Attempt to deserialize a value as a script Witness
Attempt to deserialize a value as a script Witness
Attempt to deserialize a value as a script Witness
pub fn try_val_as_witness(val: &PSBTValue) -> Result<Witness, PSBTError> {
    let mut wit_bytes = &val.items()[..];
    let number = ser::read_compact_int(&mut wit_bytes)? as usize;
    Ok(WitnessStackItem::read_seq_from(
        &mut wit_bytes,
        ReadSeqMode::Exactly(number),
    )?)
}
pub fn try_val_as_witness ( val : & PSBTValue ) -> Result < Witness , PSBTError > { let mut wit_bytes = & val . items ( ) [ .. ] ; let number = ser :: read_compact_int ( & mut wit_bytes ) ? as usize ; Ok ( WitnessStackItem :: read_seq_from ( & mut wit_bytes , ReadSeqMode :: Exactly ( number ) , ) ? ) }
Attempt to deserialize a value as a script Witness
Attempt to deserialize a value as a script Witness
val
&PSBTValue
val
&PSBTValue