Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/hpke/src/utils/misc.ts>isCryptoKeyPair

A Hybrid Public Key Encryption (HPKE) module built on top of Web Cryptography API.
Latest
variable isCryptoKeyPair
import { isCryptoKeyPair } from "https://deno.land/x/hpke@1.2.9/src/utils/misc.ts";

Checks whetehr the type of input is CryptoKeyPair or not.

type

(x: unknown) => x is CryptoKeyPair