Function getLinkingChallenge

  • Generates the challenge that links a DID to an account. The account has to sign the challenge, while the DID will sign the extrinsic that contains the challenge and will link the account to the DID.

    Returns

    The encoded challenge.

    Parameters

    • did: DidUri

      The URI of the DID that that should be linked to an account.

    • validUntil: BN

      Last blocknumber that this challenge is valid for.

    Returns Promise<Uint8Array>