• Imports a previously generated key pair and converts it into a usable format.

    This includes converting the public key into JWK format and setting key metadata.

    Parameters

    • value: {
          alg: Algoritm;
          created: number;
          id: `${string}-${string}-${string}-${string}-${string}`;
          privateKey: string;
          publicKey: string;
      }

      The previously generated key pair.

    Returns Promise<KeyPair>

    A promise that resolves to an object containing the imported key pair.

    const keyPair = await JWK.importKeyPair(existingKeyPair);
    console.log(keyPair.public);