XOnlyPubKey::CheckTapTweak

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

NameDescription
internalThe internal x-only public key.
merkle_rootThe Merkle root of the script tree.
parityThe expected parity of the tweaked output point.