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) {
var wiz = wizard(server);
var doSign = null;
async.waterfall([
// function (next){
// wiz.configKey(conf, next);
// },
// function (next){
// signature(conf.salt, conf.passwd, next);
// },
function (next){
signature('abc', 'abc', next);
wiz.configKey(conf, next);
},
function (sigFunc, next){
doSign = sigFunc;
// Extract key pair
crypto.getKeyPair('abc', 'abc', next);
function (next){
signature(conf.salt, conf.passwd, next);
},
function (pair, 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