@ondemos/core
Version:
A cryptographic commitment scheme with implied order of ownership wasm module for nodejs and the browser.
17 lines • 539 B
TypeScript
import type { LibDemos } from "@libdemos";
/**
* @function
* getMerkleProof
*
* @description
* Returns the Merkle proof of an element of a tree.
* Can be used as a receipt of a transaction etc.
*
* @param {Uint8Array[]} tree: The tree.
* @param {Uint8Array} element: The element.
*
* @returns {Promise<Uint8Array>}: The Merkle proof.
*/
declare const getMerkleProof: (tree: Uint8Array[], element: Uint8Array, module?: LibDemos) => Promise<Uint8Array>;
export default getMerkleProof;
//# sourceMappingURL=getMerkleProof.d.ts.map