Skip to content

Class: MerkleTree

The Merkle tree is a data structure that allows for efficient verification of the membership of an element in a set.

Constructors

new MerkleTree()

new MerkleTree(): MerkleTree

Returns

MerkleTree

Methods

free()

free(): void

Returns

void

Defined in

web.d.ts:1296


computeRoot()

static computeRoot(values): Uint8Array

Computes the root of a Merkle tree from a list of Uint8Arrays.

Parameters

values: Uint8Array[]

Returns

Uint8Array

Defined in

web.d.ts:1302