Interface iMerkleChallengeDoc<T>

interface iMerkleChallengeDoc<T> {
    _docId: string;
    _id?: string;
    approvalId: string;
    approvalLevel: "" | "collection" | "incoming" | "outgoing";
    approverAddress: string;
    challengeTrackerId: string;
    collectionId: T;
    usedLeafIndices: iUsedLeafStatus<T>[];

Type Parameters

Hierarchy (view full)

  • Doc
    • iMerkleChallengeDoc

Implemented by


_docId: string

A unique stringified document ID

_id?: string

A unique document ID (Mongo DB ObjectID)

approvalId: string

The approval ID

approvalLevel: "" | "collection" | "incoming" | "outgoing"

The challenge level (i.e. "collection", "incoming", "outgoing")

approverAddress: string

The approver address (leave blank if approvalLevel = "collection")

challengeTrackerId: string

The challenge ID

collectionId: T

The collection ID

usedLeafIndices: iUsedLeafStatus<T>[]

The used leaf indices for each challenge. A leaf index is the leaf location in the bottommost layer of the Merkle tree