/* tslint:disable */ /* eslint-disable */ /** * Accepts a list of blake2b-256 hashes packed into a single array. Returns the 32 byte root hash. * * # Panics * * Panics if the input value is not a multiple of 32. * Panics if number of leaves is 0. * @param {Uint8Array} leaves * @returns {Uint8Array} */ export function compute_root(leaves: Uint8Array): Uint8Array; /** * # Panics * * Panics if the packed "leaves" array length is not a multiple of 32. * Panics if leaf_index is >= leaves.len(). * @param {number} leaf_index * @param {Uint8Array} leaves * @returns {any} */ export function create_proof(leaf_index: number, leaves: Uint8Array): any; /** * Returns the 32 byte root hash. * * # Panics * * Panics if leaf has a length other than 32. * Panics if proof is not a valid json serialized list of proof elements. * @param {Uint8Array} leaf * @param {any} proof * @returns {Uint8Array} */ export function verify_proof(leaf: Uint8Array, proof: any): Uint8Array; /** * Compute root and create proofs for every leaf. This is much more efficient than calling * [`compute_root`] followed by [`create_proof`] for every element of the tree. * * Accepts a list of blake2b-256 hashes packed into a single array. Returns the 32 byte root hash * and a list of proofs as a tuple. * * # Panics * * Panics if the input value is not a multiple of 32. * Panics if number of leaves is 0. * @param {Uint8Array} leaves * @returns {any} */ export function construct(leaves: Uint8Array): any;