@ondemos/core
Version:
A cryptographic commitment scheme with implied order of ownership wasm module for nodejs and the browser.
13 lines • 573 B
TypeScript
/**
* @function
* Calculates the Merkle root from the element hash and its Merkle proof.
*
* @param hash: The hash of the base element in question.
* @param proof: The first element is the first leave that was added for the calculation etc. The last
* byte is either 0 or 1, indicating whether it is to the left or to the right in the tree.
*
* @returns The Merkle root
*/
declare const getMerkleRootFromProof: (hash: Uint8Array, proof: Uint8Array) => Promise<Uint8Array>;
export default getMerkleRootFromProof;
//# sourceMappingURL=getMerkleRootFromProof.d.ts.map