Skip to content

JavaScript implementation of RIPEMD160 extracted from Bitcoin Core and compiled to WebAssembly

Notifications You must be signed in to change notification settings

coins/ripemd160

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RIPEMD160 WASM

RIPEMD160 implementation extracted from Bitcoin Core and compiled to WebAssembly.

Usage

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:

clang src/ripemd160.cpp -O2 --no-standard-libraries --target=wasm32 -Wl,--no-entry -o ripemd160.wasm

About

JavaScript implementation of RIPEMD160 extracted from Bitcoin Core and compiled to WebAssembly

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published