Mine cryptocurrency while your users are idle
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.
- react for building user interface
- react-native-web to handle native like components in the web
- react-coin-hive to mine XMR
It is your responsibility to inform your visitors if you are running this code and allow them to opt out! Cryptocurrency mining may be considered malware if done without user consent.
MIT