Optional
data: PartialMessage<proto.badges.MerkleChallenge>The ID of this Merkle challenge for tracking the number of uses per leaf.
Arbitrary custom data associated with this Merkle challenge.
The expected length of the Merkle path for verification. Used to prevent Merkle path truncation attacks.
The maximum number of times each leaf can be used. Must be 1 if useCreatorAddressAsLeaf is false to prevent replay attacks.
The root hash of the Merkle tree to which the Merkle path must lead for verification.
The URI associated with this Merkle challenge, optionally providing metadata about the challenge.
If true, we will override the user's leaf for their proof with their creator address. Used for whitelist trees where all leaves are valid BitBadges addresses.
Static
Readonly
fieldsStatic
Readonly
runtimeStatic
Readonly
typeStatic
equalsStatic
fromOptional
options: Partial<BinaryReadOptions>Static
fromOptional
options: Partial<JsonReadOptions>Static
fromOptional
options: Partial<JsonReadOptions>
Challenges define a rule for the approval in the form of a Merkle challenge.
A Merkle challenge is a challenge where the user must provide a Merkle proof to a Merkle tree. If they provide a valid proof, then the challenge is met. All challenges must be met with valid solutions for the transfer to be approved.
IMPORTANT: Merkle challenges currently are limited to SHA256 hashes. See documentation for MerkleChallenge for more details and tutorials.
IMPORTANT: We track the number of uses per leaf according to the challengeTrackerId specified by the parent approval of this challenge. If you update the challenge ID, then the used leaves tracker will reset and start a new tally. We recommend using a unique challenge ID for each challenge to prevent overlap and unexpected behavior.
Generated
from message badges.MerkleChallenge