Skip to main content

verify_p2wpkh_inline

Function verify_p2wpkh_inline 

Source
pub fn verify_p2wpkh_inline(
    witness: &Vec<Vec<u8>>,
    script_pubkey: &[u8],
    flags: u32,
    tx: &Transaction,
    input_index: usize,
    prevout_value: i64,
    height: u64,
    network: Network,
    precomputed_bip143: Option<&Bip143PrecomputedHashes>,
    precomputed_sighash_all: Option<[u8; 32]>,
    ecdsa_collect: Option<(&EcdsaSignatureCollector, usize)>,
) -> Result<bool, ConsensusError>
Expand description

Native P2WPKH inline verify (BIP143). Caller must gate scriptPubKey / witness shape.