bitbadgesjs-sdk - v0.22.7
    Preparing search index...

    Class ETHSignatureChallenge

    ETHSignatureChallenge defines a rule for the approval in the form of an Ethereum signature challenge.

    An ETH signature challenge is a challenge where the user must provide a valid Ethereum signature for a specific nonce. The signature scheme is ETHSign(nonce + "-" + creatorAddress) and each signature can only be used once. All challenges must be met with valid solutions for the transfer to be approved.

    IMPORTANT: We track the usage of each signature to prevent replay attacks. Each signature can only be used once. If you update the challenge ID, then the used signatures tracker will reset and start a new tally. We recommend using a unique challenge ID for each challenge to prevent overlap and unexpected behavior.

    from message badges.ETHSignatureChallenge

    Hierarchy

    Index

    Constructors

    Properties

    challengeTrackerId: string = ""

    The ID of this ETH signature challenge for tracking the number of uses per signature.

    from field: string challengeTrackerId = 2;

    customData: string = ""

    Arbitrary custom data associated with this ETH signature challenge.

    from field: string customData = 4;

    signer: string = ""

    The Ethereum address that must sign the nonce for verification.

    from field: string signer = 1;

    uri: string = ""

    The URI associated with this ETH signature challenge, optionally providing metadata about the challenge.

    from field: string uri = 3;

    fields: FieldList = ...
    runtime: ProtoRuntime = proto3
    typeName: "badges.ETHSignatureChallenge"

    Methods