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.

    Parameters

    • did: Did

      The DID that should be linked to an account.

    • validUntil: BN

      Last blocknumber that this challenge is valid for.

    Returns Promise<Uint8Array>

    The encoded challenge.