ordspv
    Preparing search index...

    Function verifyScriptPathCommitment

    • Verify Q == P + hash_TapTweak(P || merkle_root)·G and the output-key parity bit. Throws with a reason on failure; returns derived hashes on success.

      Parameters

      • args: {
            controlBlock: Uint8Array<ArrayBufferLike> | ControlBlock;
            script: Uint8Array;
            scriptPubKey: Uint8Array;
        }
        • controlBlock: Uint8Array<ArrayBufferLike> | ControlBlock
        • script: Uint8Array
        • scriptPubKey: Uint8Array

          scriptPubKey of the spent (commit) output; must be P2TR

      Returns ScriptPathCheck