25 lines
600 B
TypeScript
25 lines
600 B
TypeScript
|
import type { BytesLike } from "../utils/index.js";
|
||
|
/**
|
||
|
* Compute the cryptographic RIPEMD-160 hash of %%data%%.
|
||
|
*
|
||
|
* @_docloc: api/crypto:Hash Functions
|
||
|
* @returns DataHexstring
|
||
|
*
|
||
|
* @example:
|
||
|
* ripemd160("0x")
|
||
|
* //_result:
|
||
|
*
|
||
|
* ripemd160("0x1337")
|
||
|
* //_result:
|
||
|
*
|
||
|
* ripemd160(new Uint8Array([ 0x13, 0x37 ]))
|
||
|
* //_result:
|
||
|
*
|
||
|
*/
|
||
|
export declare function ripemd160(_data: BytesLike): string;
|
||
|
export declare namespace ripemd160 {
|
||
|
var _: (data: Uint8Array) => Uint8Array;
|
||
|
var lock: () => void;
|
||
|
var register: (func: (data: Uint8Array) => BytesLike) => void;
|
||
|
}
|