• Convert a multikey pair to JWK. This function decodes the multikey data into a binary buffer, checks the preambles and invokes the crypto specific converter functions (depending on the preamble values) that do the final conversion from the binary data to JWK.

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

    Parameters

    Returns JWKKeyPair

    • 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 JWK.

    Parameters

    • keys: string

    Returns JsonWebKey

    • exceptions if something is incorrect in the incoming data