Compute the Taproot tweak as specified in BIP341, with *this as internal key: - if merkle_root == nullptr: H_TapTweak(xonly_pubkey) - otherwise: H_TapTweak(xonly_pubkey || *merkle_root)
Note that the behavior of this function with merkle_root != nullptr is consensus critical.
The computed Taproot tweak hash.
| Name | Description |
|---|---|
| merkle_root | Optional Merkle root mixed into the tweak (see above). |