@ondemos/core
Version:
A cryptographic commitment scheme with implied order of ownership wasm module for nodejs and the browser.
16 lines • 717 B
TypeScript
import type { LibDemos } from "@libdemos";
/**
* Verifies that the hash was indeed included in the calculation of the Merkle root.
* @param hash: The hash of the base element in question.
* @param root: The Merkle root.
* @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.
*/
declare const generateIdentities: (identitiesLen?: number, module?: LibDemos) => Promise<{
nonces: Uint8Array[];
publicKeys: Uint8Array[];
secretKeys: Uint8Array[];
commitDetails: Uint8Array;
}>;
export default generateIdentities;
//# sourceMappingURL=generateIdentities.d.ts.map