Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/coins/ripemd160
JavaScript implementation of RIPEMD160 extracted from Bitcoin Core and compiled to WebAssembly
https://github.com/coins/ripemd160
Last synced: 6 days ago
JSON representation
JavaScript implementation of RIPEMD160 extracted from Bitcoin Core and compiled to WebAssembly
- Host: GitHub
- URL: https://github.com/coins/ripemd160
- Owner: coins
- Created: 2023-11-27T18:40:28.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2023-11-28T13:52:03.000Z (12 months ago)
- Last Synced: 2024-10-20T22:03:41.624Z (24 days ago)
- Language: C++
- Homepage:
- Size: 24.4 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
- awesome-bitvm - RIPEMD160 WASM
README
# RIPEMD160 WASM
RIPEMD160 implementation extracted from [Bitcoin Core](https://github.com/bitcoin/bitcoin/blob/master/src/crypto/ripemd160.cpp) and compiled to WebAssembly.
## Usage
```js
import {ripemd160} from 'https://bitvm.github.io/ripemd160/ripemd160.js'const preimage = new Uint8Array([97, 98, 99]) // Our preimage is "abc"
const digest = ripemd160(preimage)console.log(digest)
```## Development
The following command compiles the sources to wasm:
```sh
clang src/ripemd160.cpp -O2 --no-standard-libraries --target=wasm32 -Wl,--no-entry -o ripemd160.wasm
```