Skip to content

WebCryptomining/WebRandomX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebRandomX

WebRandomX is a JavaScript/WASM implementation of tevador/RandomX PoW for web platforms.

Build

Get Source

git clone git@github.com:WebCryptojacking/WebRandomX.git

WASM Binary

Prerequisites: emcc, cmake, make

cd WebRandomX
mkdir build && cd build
emcmake cmake -DARCH=native ..
make

To generate web-randomx-tests and web-randomx-benchmark executables for testing, just set the TESTS option to true and run the generated scripts with Node.js:

emcmake cmake -DARCH=native -DTESTS=true ..
node web-randomx-tests.js
node web-randomx-benchmark.js [options]

Web App

Prerequisites: npm

npm install

For development, run:

npm run dev

Then lauch Chrome debugger through VSCode or manually.

For production, run:

npm run build

Webpack will generate the files and put them in the WebRandomX/dist folder. They can be deployed with nginx or Apache.

Note: The proxy server address should be configured in src/js/job.js.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors