Hash.ripemd160
Calculates the Ripemd160 hash of a Bytes.Bytes
or Hex.Hex
value.
This function is a re-export of ripemd160
from @noble/hashes
, an audited & minimal JS hashing library.
Imports
Named
import { Hash } from 'ox'
Examples
import { Hash } from 'ox'
Hash.ripemd160('0xdeadbeef')
// '0x226821c2f5423e11fe9af68bd285c249db2e4b5a'
Definition
function ripemd160<value, as>(
value: value | Hex.Hex | Bytes.Bytes,
options?: ripemd160.Options<as>,
): ripemd160.ReturnType<as>
Source: src/core/Hash.ts
Parameters
value
- Type:
value | Hex.Hex | Bytes.Bytes
Bytes.Bytes
or Hex.Hex
value.
options
- Type:
ripemd160.Options<as>
- Optional
Options.
options.as
- Type:
"Bytes" | "Hex" | as
- Optional
The return type.
Return Type
Ripemd160 hash.
ripemd160.ReturnType<as>