PHP WebShell
Текущая директория: /opt/BitGoJS/node_modules/bitcoinjs-lib/src
Просмотр файла: merkle.d.ts
/// <reference types="node" />
/**
* Calculates the Merkle root of an array of buffers using a specified digest function.
*
* @param values - The array of buffers.
* @param digestFn - The digest function used to calculate the hash of the concatenated buffers.
* @returns The Merkle root as a buffer.
* @throws {TypeError} If the values parameter is not an array or the digestFn parameter is not a function.
*/
export declare function fastMerkleRoot(values: Buffer[], digestFn: (b: Buffer) => Buffer): Buffer;
Выполнить команду
Для локальной разработки. Не используйте в интернете!