0

Why would this closure not work?

  var derivedKey;
  lightwallet.keystore.deriveKeyFromPassword(password, function (err, pwDerivedKey) {
    derivedKey = pwDerivedKey;
  });

  if (!derivedKey){
    console.error ("ERROR no derivedKey");
  }

Thows the Error. What are possible explanations for this?

Roland Kofler
  • 1,332
  • 1
  • 16
  • 33

0 Answers0