Skip to main content
Module

x/secp256k1/index.ts>etc

Fastest 4KB JS implementation of secp256k1 elliptic curve. Auditable, high-security, 0-dependency ECDH & ECDSA signatures compliant with RFC6979
Go to Latest
variable etc
import { etc } from "https://deno.land/x/secp256k1@2.0.0/index.ts";

type

{ hexToBytes; bytesToHex; concatBytes; bytesToNumberBE; numberToBytesBE; mod; invert; hmacSha256Async: (key: Bytes, ...msgs: Bytes[]) => Promise<Bytes>; hmacSha256Sync; hashToPrivateKey; randomBytes: (len: number) => Bytes; }