Function bitcoin::consensus::validation::verify_script
source · pub fn verify_script(
script: &Script,
index: usize,
amount: Amount,
spending_tx: &[u8]
) -> Result<(), BitcoinconsensusError>
Expand description
Verifies spend of an input script.
Shorthand for consensus::verify_script_with_flags
with flag
bitcoinconsensus::VERIFY_ALL
.
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.