/** * This MerkleHash class is how we set up our Array list with hases and index. */ export declare class MerkleHash { Hash: string; index: number; constructor(Hash: string, index: number); } export declare class Attribute { key: string; value: string; index: number; constructor(key: string, value: string, index?: number); } /** * This function will generate a Merkle Root from the list of attributes and the list of hashes * @param attributes a list of data entry points * @param merkle a list of data that has already been hashed * @returns a merkle root */ export declare function GenerateMerkleRoot(attributes: Array, merkle?: Array): string; /** * This function will generate a list of data points that have been hashed * @param attributes a list of data entry points * @returns a list of data that has been hashed */ export declare function HashAttributes(dataToHash: Array): MerkleHash[]; export declare function oneWayHash(data: string): string;