tweakKey
bitcoinjs-lib / payments / tweakKey
Function: tweakKey()
tweakKey(
pubKey
,h
):null
|TweakedPublicKey
Defined in: ts_src/payments/bip341.ts:149
Tweak a public key with a given tweak hash.
Parameters
pubKey
Uint8Array
The public key to be tweaked.
h
The tweak hash.
undefined
| Uint8Array
Returns
null
| TweakedPublicKey
The tweaked public key or null if the input is invalid.