Class ChallengeDetails<T>

Type Parameters

Hierarchy (view full)




isHashed: boolean

True if the leaves are hashed. Hash(preimage[i]) = leaves[i]

leaves: string[]

The leaves of the Merkle tree. Leaves should be considered public. Use preimages for the secrets + isHashed. For whitelist trees, these can be the plaintext Cosmos addresses.

numLeaves?: T

The number of leaves in the Merkle tree. This takes priority over leaves.length if defined (used for buffer time between leaf generation and leaf length select)

preimages?: string[]

The preimages of the leaves (only used if isHashed = true). Oftentimes, this is used for secret codes so should not be present when user-facing.

seedCode?: string

Seed code for generating the leaves

tree?: MerkleTree

The Merkle tree

treeOptions?: Options

The Merkle tree options for how to build it


  • Compares this object's fields to another object's fields for equality. Equality is determined by comparing the JSON representations of the objects.

    If normalizeNumberTypes is true, then all number types will be compared as strings (i.e. "1n" === "1" === 1). Else, they will be compared as their native types (i.e. 1n !== 1 !== "1").

    Type Parameters


    • other: undefined | null | CustomType<U>
    • Optional normalizeNumberTypes: boolean

    Returns boolean