Merge pull request #92 from altcoins-tools/pr-add-sha1-argorithm

Support sha1
This commit is contained in:
Matthew Little 2014-08-04 13:23:15 -06:00
commit f82200812d
3 changed files with 10 additions and 1 deletions

View File

@ -55,6 +55,7 @@ May be working (needs additional testing):
* ? *Fugue* (Fuguecoin [FC])
* ? *Qubit* (Qubitcoin [Q2C], Myriadcoin [MYR])
* ? *SHAvite-3* (INKcoin [INK])
* ? *Sha1* (Sha1coin [SHA], Yaycoin [YAY])
Not working currently:
* *Groestl* - for Myriadcoin
@ -83,7 +84,7 @@ npm update
Create the configuration for your coin:
Possible options for `algorithm`: *sha256, scrypt, scrypt-jane, scrypt-n, quark, x11, keccak, blake,
skein, groestl, fugue, shavite3, hefty1, or qubit*.
skein, groestl, fugue, shavite3, hefty1, qubit, or sha1*.
```javascript
var myCoin = {

View File

@ -60,6 +60,13 @@ var algos = module.exports = global.algos = {
}
}
},
sha1: {
hash: function(){
return function(){
return multiHashing.sha1.apply(this, arguments);
}
}
},
x11: {
hash: function(){
return function(){

View File

@ -97,6 +97,7 @@ var JobManager = module.exports = function JobManager(options){
};
}
case 'scrypt-n':
case 'sha1':
return function (d) {
return util.reverseBuffer(util.sha256d(d));
};