Added X11-hashing for DarkCoin

This commit is contained in:
Matt 2014-02-19 14:59:39 -07:00
parent 83f1de968d
commit d6b99ba0d9
3 changed files with 20 additions and 8 deletions

View File

@ -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

View File

@ -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);
}
}
})();

View File

@ -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",