Get a public key from the given keypair.

The keypair to extract the public key from

The public key

  • Parameters

    • key: CryptoKey

    Returns Promise<Uint8Array>

  • Parameters

    • key: CryptoKey
    • opts: { format: "string" }

    Returns Promise<string>