[#XOnlyPubKey-CreateTapTweak] = xref:XOnlyPubKey.adoc[XOnlyPubKey]::CreateTapTweak :relfileprefix: ../ :mrdocs: Construct a Taproot tweaked output point with this point as internal key. == Synopsis Declared in `<pubkey.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::optional<std::pair<XOnlyPubKey, bool>> CreateTapTweak(xref:uint256.adoc[uint256] const* merkle_root) const; ---- == Return Value The tweaked output point and its parity, or std::nullopt on failure. == Parameters [cols="1,4"] |=== | Name| Description | *merkle_root* | Optional Merkle root of the script tree. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#