UNPKG

@ondemos/core

Version:

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

15 lines 485 B
import type { LibDemos } from "@libdemos"; /** * @function * Returns the Merkle root of a tree. * If Uint8Array items' length is 64, even after serializer, * then we assume that it is a hash. * * @param tree: The tree. * @param serializer: Converts leaves into Uint8Array. * * @returns Promise<Uint8Array> */ declare const getMerkleRoot: (tree: Uint8Array[], module?: LibDemos) => Promise<Uint8Array>; export default getMerkleRoot; //# sourceMappingURL=getMerkleRoot.d.ts.map