UNPKG

@ondemos/core

Version:

A cryptographic commitment scheme with implied order of ownership wasm module for nodejs and the browser.

13 lines 403 B
import type { LibDemos } from "@libdemos"; /** * @function * Returns a Uint8Array of cryptographically random bytes. * * @param n: The length of the array. * @param module?: In case we want to cache the WASM loading. * * @returns Uint8Array */ declare const randomBytes: (n: number, module?: LibDemos) => Promise<Uint8Array>; export default randomBytes; //# sourceMappingURL=randomBytes.d.ts.map