MgetPublicKey
Bun

method

crypto.webcrypto.SubtleCrypto.getPublicKey

key: CryptoKey,
keyUsages: KeyUsage[]
): Promise<CryptoKey>;

Derives the public key from a given private key.

@param key

A private key from which to derive the corresponding public key.

@param keyUsages
@returns

Fulfills with a CryptoKey upon success.