Skip to main content
Go to Latest
function pubkeyGen
import { pubkeyGen } from "https://deno.land/x/simple_utility@v1.3.4/mod.universal.ts";

Generate exportable public-key pair. You can generate keys for ECDH or ECDSA. Algorithm use is "NIST P-512".

Examples

Example 1

const key1 = await pubkeyGen("ECDH");
const key2 = await pubkeyGen("ECDSA");

Parameters

usage: "ECDH" | "ECDSA"