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?