Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Latest
function cryptoGenerateSignKey
import { cryptoGenerateSignKey } from "https://deno.land/x/simple_utility@v2.2.1/mod.full.ts";

Generate exportable public-key pair for ECDSA. Curve algorithm is "NIST P-256". Key format is SPKI for public-key and PKCS8 for private-key.

Examples

Example 1

const {pub, key} = await cryptoGenerateSignKey();

Returns

Promise<PubKey>