functionalscript
Version:
FunctionalScript is a purely functional subset of JavaScript
6 lines (5 loc) • 363 B
TypeScript
import { type Vec } from '../../types/bit_vec/module.f.ts';
import { type Init } from '../secp/module.f.ts';
import type { Sha2 } from '../sha2/module.f.ts';
export declare const newPrivateKey: (i: Init) => (random: Vec) => Vec;
export declare const sign: (sha2: Sha2) => (curveInit: Init) => (privateKey: Vec) => (messageHash: Vec) => readonly [bigint, bigint];