PHP WebShell
Текущая директория: /opt/BitGoJS/node_modules/ethereumjs-tx/node_modules/ethereumjs-util/dist
Просмотр файла: hash.d.ts
/// <reference types="node" />
import rlp = require('rlp');
/**
* Creates Keccak hash of the input
* @param a The input data (Buffer|Array|String|Number) If the string is a 0x-prefixed hex value
* it's interpreted as hexadecimal, otherwise as utf8.
* @param bits The Keccak width
*/
export declare const keccak: (a: any, bits?: number) => Buffer;
/**
* Creates Keccak-256 hash of the input, alias for keccak(a, 256).
* @param a The input data (Buffer|Array|String|Number)
*/
export declare const keccak256: (a: any) => Buffer;
/**
* Creates SHA256 hash of the input.
* @param a The input data (Buffer|Array|String|Number)
*/
export declare const sha256: (a: any) => Buffer;
/**
* Creates RIPEMD160 hash of the input.
* @param a The input data (Buffer|Array|String|Number)
* @param padded Whether it should be padded to 256 bits or not
*/
export declare const ripemd160: (a: any, padded: boolean) => Buffer;
/**
* Creates SHA-3 hash of the RLP encoded version of the input.
* @param a The input data
*/
export declare const rlphash: (a: rlp.Input) => Buffer;
Выполнить команду
Для локальной разработки. Не используйте в интернете!