Skip to main content

validate_taproot_script_path_with_leaf_version

Function validate_taproot_script_path_with_leaf_version 

Source
pub fn validate_taproot_script_path_with_leaf_version(
    script: &ByteString,
    merkle_proof: &[Hash],
    merkle_root: &Hash,
    leaf_version: u8,
) -> Result<bool>
Expand description

Spec-locked to Orange Paper Section 11.2.3: ValidateTaprootScriptPathWithLeafVersion

Function ‘ValidateTaprootScriptPathWithLeafVersion’ referenced but not yet in spec section 11.2 (Migration mode). Available: ValidateTaprootScriptPath, ComputeScriptMerkleRoot Validate Taproot script path spending with explicit leaf version.