Function bitcoin::consensus::validation::verify_script_with_flags
source · pub fn verify_script_with_flags<F: Into<u32>>(
script: &Script,
index: usize,
amount: Amount,
spending_tx: &[u8],
flags: F
) -> Result<(), BitcoinconsensusError>
Expand description
Verifies spend of an input script.
Parameters
index
- The input index in spending which is spending this transaction.amount
- The amount this script guards.spending_tx
- The transaction that attempts to spend the output holding this script.flags
- Verification flags, seebitcoinconsensus::VERIFY_ALL
and similar.