Methods
Static HMAC
- HMAC(key: Buffer, data: Buffer): Buffer
Static KMAC
- KMAC(key: Buffer, data: Buffer, publicSalt: undefined | Buffer): Buffer
Parameters
key: Buffer
data: Buffer
publicSalt: undefined | Buffer
Returns Buffer
Static hash160
- hash160(buffer: Buffer): Buffer
Creates a Hash Message Authentication Code.
This method uses SHA512 algorithm and
create-hmac
dependency for the MAC generation.