Skip to content
Snippets Groups Projects
Commit 365e8641 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

Fix: now uses stored key parameters instead of testing constants

parent 20dae07d
No related branches found
No related tags found
No related merge requests found
...@@ -299,19 +299,11 @@ function generateAndSend (generationMethod) { ...@@ -299,19 +299,11 @@ function generateAndSend (generationMethod) {
var wiz = wizard(server); var wiz = wizard(server);
var doSign = null; var doSign = null;
async.waterfall([ async.waterfall([
// function (next){
// wiz.configKey(conf, next);
// },
// function (next){
// signature(conf.salt, conf.passwd, next);
// },
function (next){ function (next){
signature('abc', 'abc', next); wiz.configKey(conf, next);
}, },
function (sigFunc, next){ function (next){
doSign = sigFunc; signature(conf.salt, conf.passwd, next);
// Extract key pair
crypto.getKeyPair('abc', 'abc', next);
}, },
function (pair, next){ function (pair, next){
proveAndSend(server, block, doSign, base58.encode(pair.publicKey), difficulty, host, port, next); proveAndSend(server, block, doSign, base58.encode(pair.publicKey), difficulty, host, port, next);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment