Skip to main content
Latest
function cryptoGenerateSignKey
import { cryptoGenerateSignKey } from "https://deno.land/x/simple_utility@v2.2.0/mod.pure.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>