@tendermint/sig
Version:
A signing library for Cosmos
18 lines (17 loc) • 357 B
TypeScript
import { Bytes } from '@tendermint/types';
/**
* Hash bytes using SHA256.
*
* @param bytes - bytes to hash
*
* @returns hashed bytes
*/
export declare function sha256(bytes: Bytes): Bytes;
/**
* Hash bytes using RIPEMD160.
*
* @param bytes - bytes to hash
*
* @returns hashed bytes
*/
export declare function ripemd160(bytes: Bytes): Bytes;