Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
function cryptoGenerateSignKey
import { cryptoGenerateSignKey } from "https://deno.land/x/simple_utility@v2.3.2/mod.pure.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>