Class MerkleArrayProof

An interface for objects that can be encoded and decoded to/from msgpack and JSON.

Implements

Constructors

Properties

hashFactory: HashFactory
path: Uint8Array[]

Path is bounded by MaxNumLeavesOnEncodedTree since there could be multiple reveals, and given the distribution of the elt positions and the depth of the tree, the path length can increase up to 2^MaxEncodedTreeDepth / 2

treeDepth: number

TreeDepth represents the depth of the tree that is being proven. It is the number of edges from the root to a leaf.

encodingSchema: NamedMapSchema = ...

Methods

  • Get the encoding Schema for this object, used to prepare the encoding data for msgpack and JSON.

    Returns Schema

  • Extract the encoding data for this object. This data, after being prepared by the encoding Schema, can be encoded to msgpack or JSON.

    Returns Map<string, unknown>

Generated using TypeDoc