Function getWrappedChallenge

  • Wraps the provided challenge according to the key type.

    Ethereum addresses will cause the challenge to be prefixed with \x19Ethereum Signed Message:\n and the length of the message.

    For all other key types the message will be wrapped in <Bytes>..</Bytes>.

    Parameters

    • type: WrappingStrategy

      The key type that will sign the challenge.

    • challenge: Uint8Array

      The challenge to proof ownership of both account and DID.

    Returns Uint8Array

    The wrapped challenge.