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

@nimiq/core/types/wasm/web.d.ts:1322


computeRoot()

static computeRoot(values): Uint8Array

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

Parameters

values: Uint8Array[]

Returns

Uint8Array

Defined in

@nimiq/core/types/wasm/web.d.ts:1328