mcl-wasm
Version:
mcl ; A portable and fast pairing-based cryptography library for Node.js by WebAssembly
12 lines (11 loc) • 659 B
TypeScript
import { CurveType } from './constants';
export declare const ptrToAsciiStr: (pos: number, n: number) => string;
export declare const asciiStrToPtr: (pos: number, s: string) => void;
export declare const toHex: (a: Uint8Array, start: number, n: number) => string;
export declare const toHexStr: (a: Uint8Array) => string;
export declare const fromHexStr: (s: string) => Uint8Array;
export declare const free: (x: number) => void;
export declare const _showDebug: () => void;
/** given `CurveType` of last `initializeMcl` call */
export declare let initializedCurveType: CurveType;
export declare const initializeMcl: (curveType?: CurveType) => Promise<void>;