bitcoin::consensus::validation

Function 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>
Available on crate feature bitcoinconsensus only.
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, see bitcoinconsensus::VERIFY_ALL and similar.