Skip to main content
Module

x/secp256k1/index.d.ts>etc

Fastest 4KB JS implementation of secp256k1 signatures and ECDH
Latest
variable etc
import { etc } from "https://deno.land/x/secp256k1@2.1.0/index.d.ts";

type

{ hexToBytes: (hex: string) => Bytes; bytesToHex: (b: Bytes) => string; concatBytes: (...arrs: Bytes[]) => Uint8Array; bytesToNumberBE: (b: Bytes) => bigint; numberToBytesBE: (num: bigint) => Bytes; mod: (a: bigint, b?: bigint) => bigint; invert: (num: bigint, md?: bigint) => bigint; hmacSha256Async: (key: Bytes, ...msgs: Bytes[]) => Promise<Bytes>; hmacSha256Sync: HmacFnSync; hashToPrivateKey: hashToPrivateKey; randomBytes: (len?: number) => Bytes; }