rootHashFromPath
bitcoinjs-lib / payments / rootHashFromPath
Function: rootHashFromPath()
rootHashFromPath(
controlBlock
,leafHash
):Uint8Array
Defined in: ts_src/payments/bip341.ts:44
Calculates the root hash from a given control block and leaf hash.
Parameters
controlBlock
Uint8Array
The control block buffer.
leafHash
Uint8Array
The leaf hash buffer.
Returns
Uint8Array
The root hash buffer.
Throws
If the control block length is less than 33.