Skip to content

💰 JavaScript miner for the cryptocurrency Monero Blockchain (XMR) using Coin-Hive

Notifications You must be signed in to change notification settings

umbertocicero/coinhive-monero

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

JavaScript miner for the cryptocurrency Monero Blockchain (XMR) using Coin-Hive

Disclaimer

This project has nothing to do with coin-hive.com

Monetize Your Business With Your Users' CPU Power

Monero is different. To mine Monero, you have to calculate hashes with an algorithm called Cryptonight. This algorithm is very compute heavy and – while overall pretty slow – was designed to run well on consumer CPUs.

There are solutions to run the Cryptonight algorithm on a GPU instead, but the benefit is about 2x, not 10000x like for other algorithms used by Bitcoin or Ethereum. This makes Cryptonight a nice target for JavaScript and the Browser.

Of course, when running through JavaScript performance still takes a bit of a toll, but it's not that bad. Our miner uses WebAssembly and runs with about 65% of the performance of a native Miner. For an Intel i7 CPU (one of the fastest desktop CPUs) you should see a hashrate of about 90h/s. A native miner would get to 140h/s.

Modify:

SITE_KEY: Coin-Hive's Site Key

About

💰 JavaScript miner for the cryptocurrency Monero Blockchain (XMR) using Coin-Hive

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages