• Converts a DER-encoded SPKI public key to its JWK format.

    Parameters

    • params: {
          spki: Uint8Array;
      }

      The parameters for the SPKI to JWK conversion.

      • spki: Uint8Array

        The DER-encoded SPKI public key as a Uint8Array.

    Returns Jwk

    The public key in JWK format.

    Remarks

    This method is used to transform a public key from its DER-encoded X.509 SubjectPublicKeyInfo (SPKI) format to JSON Web Key (JWK) format. This conversion is necessary because AWS KMS returns public keys in SPKI format, but all other Web5 cryptographic libraries use JWK format.