Get the public key as a Uint8Array by default, or a base64 string.

  • Parameters

    • key: CryptoKey

    Returns Promise<Uint8Array>

  • Parameters

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

    Returns Promise<string>