RIPEMD-160 adapter for WebAssembly and JS implementations
npm i @hazae41/ripemd160
- 100% TypeScript and ESM
- No external dependencies
npm i @hazae41/morax
import { Ripemd160 } from "@hazae41/ripemd160"
Ripemd160.set(await Ripemd160.fromMorax())
npm i @noble/hashes
import { Ripemd160 } from "@hazae41/ripemd160"
Ripemd160.set(Ripemd160.fromNoble())
const hashed: Uint8Array = Ripemd160.get().tryHash(new Uint8Array([1,2,3,4,5])).unwrap().copyAndDispose()
const hasher = Ripemd160.get().Hasher.tryNew().unwrap()
hasher.tryUpdate(new Uint8Array([1,2,3,4,5])).unwrap()
const hashed: Uint8Array = hasher.tryFinalize().unwrap().copyAndDispose()