diff --git a/README.md b/README.md index 79d8a2f..57d06b6 100644 --- a/README.md +++ b/README.md @@ -21,9 +21,14 @@ Features (need additional testing) * Block template / job manager * Optimized generation transaction building * Process share submissions -* Supports algorithms: scrypt, scrypt-jane, quark * POW (proof-of-work) & POS (proof-of-stake) support * Vardiff (variable difficulty / share limiter) +* Supports algorithms: + * __SHA256__ (BitCoin, Freicoin, Peercoin/PPCoin, TerraCoin, etc..) + * __Scrypt__ (LiteCoin, Dogecoin, FeatherCoin, etc..) + * __Scrypt-jane__ (YaCoin, CopperBars, Pennies, Tickets, etc..) + * __Quark__ (QuarkCoin [QRK]) + * __X11__ (Darkcoin [DRK]) #### To do * Statistics module diff --git a/lib/jobManager.js b/lib/jobManager.js index a364b11..26ad9d7 100644 --- a/lib/jobManager.js +++ b/lib/jobManager.js @@ -4,7 +4,8 @@ var bignum = require('bignum'); var scrypt = require('scrypt256-hash'); var quark = require('quark-hash'); -var scryptJane = require('scrypt-jane-hash') +var scryptJane = require('scrypt-jane-hash'); +var x11 = require('x11-hash'); var util = require('./util.js'); @@ -90,6 +91,7 @@ var JobManager = module.exports = function JobManager(options){ case 'scrypt-jane': return 0x0000ffff00000000000000000000000000000000000000000000000000000000; case 'quark': + case 'x11': return 0x000000ffff000000000000000000000000000000000000000000000000000000; } })(); @@ -114,6 +116,10 @@ var JobManager = module.exports = function JobManager(options){ return function(){ return quark.digest.apply(this, arguments); } + case 'x11': + return function(){ + return x11.digest.apply(this, arguments); + } } })(); diff --git a/package.json b/package.json index 194b7f1..e8e568a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "stratum-pool", - "version": "0.0.6", + "version": "0.0.7", "author": "Matthew Little", "description": "High performance Stratum poolserver in Node.js", "contributors": [ @@ -24,11 +24,12 @@ "scrypt" ], "dependencies": { - "scrypt256-hash": "*", - "scrypt-jane-hash": "*", - "quark-hash": "*", - "bignum": "*", - "base58-native": "*", + "scrypt256-hash": "zone117x/node-scrypt256-hash", + "scrypt-jane-hash": "zone117x/node-scrypt-jane-hash", + "quark-hash": "zone117x/node-quark-hash", + "x11-hash": "zone117x/node-x11-hash", + "bignum": "*", + "base58-native": "*", "async": "*" }, "license": "GPL-2.0",