• Convert a multikey pair to Web Crypto. This function decodes the multikey data into JWK using the multikeyToJWK function, and imports the resulting keys into Web Crypto.

    Works for ecdsa (both P-384 and P-256), and eddsa.

    Note that, because WebCrypto methods are asynchronous, so is this function.

    Parameters

    Returns Promise<CryptoKeyPair>

    • exceptions if something is incorrect in the incoming data
  • Overloaded version of the conversion function for a single (public) key in Multikey, returning the generated Crypto Key.

    Parameters

    • keys: string

    Returns Promise<CryptoKey>

    • exceptions if something is incorrect in the incoming data