Verify that this is a Taproot tweaked output point, against a specified internal key, Merkle root, and parity.

Synopsis

Declared in <pubkey.h>

bool
CheckTapTweak(
    XOnlyPubKey const& internal,
    uint256 const& merkle_root,
    bool parity) const;

Return Value

true if this point is the expected tweaked output point.

Parameters

Name

Description

internal

The internal x‐only public key.

merkle_root

The Merkle root of the script tree.

parity

The expected parity of the tweaked output point.

Created with MrDocs