pub fn witness_sig_ops(
    witversion: i32,
    witprogram: &Vec<u8>,
    witness: &ScriptWitness
) -> usize