WASM bindings on top of C/C++ vblake implementation from alt-integration-cpp
To include in HTML, use this link:
https://unpkg.com/@veriblock/vblake@1.0.0/vblake_module.js
Build:
- Install emsdk - https://emscripten.org/docs/getting_started/downloads.html
- Run
source emsdk_env.sh
(on Linux/Mac) oremsdk_env.bat
on Windows. - In same terminal as (2) navigate to
vblake
directory. make
Result is vblake_module.js
. Include it in your HTML, and use:
const hash = Module.vblake('0123');