External module "utils/hash"
Functions
Const hmacSHA512
- hmacSHA512(key: Buffer, buffer: Buffer): Buffer
-
Parameters
-
key: Buffer
-
buffer: Buffer
Returns Buffer
Const keccak256
- keccak256(buffer: Buffer): Buffer
-
Parameters
Returns Buffer
Const pbkdf2
- pbkdf2(buffer: Buffer, salt: Buffer, iterations?: number, length?: number, digest?: string): Buffer
-
Parameters
-
buffer: Buffer
-
salt: Buffer
-
Default value iterations: number = 2048
-
Default value length: number = 64
-
Default value digest: string = "sha512"
Returns Buffer
Const ripemd160
- ripemd160(buffer: Buffer): Buffer
-
Parameters
Returns Buffer
Const sha256
- sha256(buffer: Buffer): Buffer
-
Parameters
Returns Buffer
Const toChecksumAddress
- toChecksumAddress(address: string): string
-
Parameters
Returns string
Hash a buffer with provided key using HMAC-SHA512.