Add x16r and x16rv2 algorithms. (#175)

* Add x16r algorithm.

* Add x16rv2 algorithm.

* Update README.md
This commit is contained in:
Ryan Hein 2019-09-10 09:51:33 -06:00 committed by Matthew Little
parent 1f35bb34c4
commit 9c4baf14ac
2 changed files with 18 additions and 0 deletions

View File

@ -50,6 +50,8 @@ Features
* ✓ __Quark__ (Quarkcoin [QRK])
* ✓ __X11__ (Darkcoin [DRK], Hirocoin, Limecoin)
* ✓ __X13__ (MaruCoin, BoostCoin)
* ✓ __X16R__ (PexaCoin, RavenCoin)
* ✓ __X16RV2__ (PexaCoin, RavenCoin)
* ✓ __NIST5__ (Talkcoin)
* ✓ __Keccak__ (Maxcoin [MAX], HelixCoin, CryptoMeth, Galleon, 365coin, Slothcoin, BitcointalkCoin)
* ✓ __Skein__ (Skeincoin [SKC])

View File

@ -109,6 +109,22 @@ var algos = module.exports = global.algos = {
}
}
},
x16r: {
multiplier: Math.pow(2, 8),
hash: function(){
return function(){
return multiHashing.x16r.apply(this, arguments);
}
}
},
x16rv2: {
multiplier: Math.pow(2, 8),
hash: function(){
return function(){
return multiHashing.x16rv2.apply(this, arguments);
}
}
},
nist5: {
hash: function(){
return function(){