[#XOnlyPubKey-CheckTapTweak]
= xref:XOnlyPubKey.adoc[XOnlyPubKey]::CheckTapTweak
:relfileprefix: ../
:mrdocs:

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

== Synopsis

Declared in `&lt;pubkey&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
CheckTapTweak(
    xref:XOnlyPubKey.adoc[XOnlyPubKey] const& internal,
    xref:uint256.adoc[uint256] const& merkle&lowbar;root,
    bool parity) const;
----

== Return Value

true if this point is the expected tweaked output point&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *internal*
| The internal x&hyphen;only public key&period;
| *merkle&lowbar;root*
| The Merkle root of the script tree&period;
| *parity*
| The expected parity of the tweaked output point&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
