deepMiner webminer proxy (update for cryptoNight R)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
ИЭΛЭS 7ΙΛЭ 62c2e3c41f
Update README.md
2 years ago
..
crypto update cryptonight R 2 years ago
README.md Update README.md 2 years ago
build.sh update cryptonight R 2 years ago
cryptonight.c update cryptonight R 2 years ago
cryptonight.h update cryptonight R 2 years ago

README.md

Cryptonight-WASM

From https://github.com/zone117x/node-multi-hashing

Bash script build.sh running with emcc from Emscripten.

#!/bin/bash
emcc *.c crypto/*.c -Oz \
    -s DISABLE_EXCEPTION_CATCHING=1 \
    -s BINARYEN_ASYNC_COMPILATION=1 \
    -s ALIASING_FUNCTION_POINTERS=1 \
    -s ALLOW_MEMORY_GROWTH=1 \
    -s WASM=1 \
    -s BINARYEN=1 \
    -s NO_EXIT_RUNTIME=1 \
    -s ASSERTIONS=1 \
    -s STACK_OVERFLOW_CHECK=1 \
    -s EXPORTED_FUNCTIONS="['_cryptonight_hash']" \
    --post-js ../web/lib/worker.js \
    -o ../web/lib/cryptonight.js

The -s EXPORTED_FUNCTIONS="['_cryptonight_hash']" export the hashing function for us.

The --post-js ../web/lib/worker.js will add the worker.js to end of JS file.

The -o ../web/lib/cryptonight.js will output the js and wasm file to web/lib/.