From 783058502327c8bf75309d6479d19132c29dfa85 Mon Sep 17 00:00:00 2001 From: romanornr Date: Thu, 1 Dec 2016 01:41:19 +0100 Subject: [PATCH] Lyra2RE diff by 128 --- lib/algoProperties.js | 9 +++++++++ lib/jobManager.js | 1 + 2 files changed, 10 insertions(+) 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) {