Fix NaCL priv calc code

pull/749/head
Matt Corallo 11 years ago
parent 2630d9ef3f
commit 244aa8df92

@ -422,8 +422,9 @@ var crypto_tests = {};
if (USE_NACL) {
postNaclMessage({command: "bytesToPriv", priv: privKey}, function(message) {
postNaclMessage({command: "privToPub", priv: message.res}, function(message) {
callback({ pubKey: prependVersion(message.res), privKey: privKey });
var priv = message.res;
postNaclMessage({command: "privToPub", priv: priv}, function(message) {
callback({ pubKey: prependVersion(message.res), privKey: priv });
});
});
} else {

Loading…
Cancel
Save