diff --git a/lib/algoProperties.js b/lib/algoProperties.js index 7725ee6..7b8d262 100644 --- a/lib/algoProperties.js +++ b/lib/algoProperties.js @@ -73,6 +73,15 @@ var algos = module.exports = global.algos = { } } }, + lyra2re: { + multiplier: Math.pow(2, 7), + hash: function(){ + return function(){ + return multiHashing.lyra2re.apply(this, arguments); + } + } + }, + } sha1: { hash: function(){ return function(){ diff --git a/lib/jobManager.js b/lib/jobManager.js index cbcfc48..194231c 100644 --- a/lib/jobManager.js +++ b/lib/jobManager.js @@ -102,6 +102,7 @@ var JobManager = module.exports = function JobManager(options){ return util.reverseBuffer(hashDigest.apply(this, arguments)); }; } + case 'lyra2re': case 'scrypt-n': case 'sha1': return function (d) {