Socket
Socket
Sign inDemoInstall

coin-hive-stratum

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coin-hive-stratum - npm Package Compare versions

Comparing version 2.6.4 to 2.6.5

1

build/Proxy.js

@@ -203,2 +203,3 @@ "use strict";

console.log("listening on port " + port + (isHTTPS ? ", using a secure connection" : ""));
console.log("miners per connection:", _this.maxMinersPerConnection);
if (wssOptions.path) {

@@ -205,0 +206,0 @@ console.log("path: " + wssOptions.path);

2

package.json
{
"name": "coin-hive-stratum",
"version": "2.6.4",
"version": "2.6.5",
"description": "proxy to use CoinHive miner on any stratum pool",

@@ -5,0 +5,0 @@ "main": "build",

@@ -7,2 +7,4 @@ ## CoinHive Stratum Proxy

You can mine cryptocurrencies [Monero (XMR)](https://getmonero.org/) and [Electroneum (ETN)](http://electroneum.com/).
This package was inspired by x25's

@@ -19,3 +21,3 @@ [coinhive-stratum-mining-proxy](https://github.com/x25/coinhive-stratum-mining-proxy).

* Deploy this proxy to DigitalOcean ($5/mo, or free for students) and run it on your own domain.
* Deploy this proxy to DigitalOcean (free promo codes!) and run it on your own domain.
[Learn More](https://github.com/cazala/coin-hive-stratum/wiki/Deploy-to-Digital-Ocean)

@@ -236,4 +238,4 @@

port: 3333,
key: fs.readFileSync("./server.key"),
cert: fs.readFileSync("./server.crt")
key: require("fs").readFileSync("key.pem"),
cert: require("fs").readFileSync("cert.pem")
});

@@ -243,12 +245,24 @@ proxy.listen(8892);

Now you can connect to your proxy using `wss://` and see the `/stats` though `https://`.
Now you can connect to your proxy using `wss://` and hit the stats and health check endpoints (ie, `/stats`) though `https://`.
You can generate self-signed certificates to test this by using this command:
To generate your SSL certificates for your domain or subdomain you can use [Certbot](https://certbot.eff.org/).
Certbot will generate the SSL certificates under these paths (where `example.com` is your domain):
* **key**: `/etc/letsencrypt/live/example.com/privkey.pem`
* **cert**: `/etc/letsencrypt/live/example.com/fullchain.pem`
So you can use them like this:
```js
const Proxy = require("coin-hive-stratum");
const proxy = new Proxy({
host: "pool.supportxmr.com",
port: 3333,
key: require("fs").readFileSync("/etc/letsencrypt/live/example.com/privkey.pem"),
cert: require("fs").readFileSync("/etc/letsencrypt/live/example.com/fullchain.pem")
});
proxy.listen(8892);
```
openssl x509 -req -sha256 -days 365 -in server.csr -signkey server.key -out server.crt
```
You will need to add these certificates to your trusted certificates, otherwise the browser will complain.
#### How can I store the logs?

@@ -255,0 +269,0 @@

@@ -231,2 +231,3 @@ import * as EventEmitter from "events";

console.log(`listening on port ${port}` + (isHTTPS ? ", using a secure connection" : ""));
console.log(`miners per connection:`, this.maxMinersPerConnection);
if (wssOptions.path) {

@@ -233,0 +234,0 @@ console.log(`path: ${wssOptions.path}`);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc