ordspv
    Preparing search index...

    Function verifyMerkleBranch

    • Fold a merkle branch from a leaf up to the root.

      Parameters

      • leaf: Uint8Array

        leaf hash, internal byte order

      • branch: Uint8Array<ArrayBufferLike>[]

        sibling hashes bottom-up, internal byte order

      • pos: number

        0-based index of the leaf in the tree

      • OptionaltxCount: number

        total leaf count, if known (strongly recommended)

      Returns MerkleBranchCheck