Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: undefined is not a function from lightwallet.keystore.deriveKeyFromPassword()

See original GitHub issue

Getting the following error in lightwallet.keystore.deriveKeyFromPassword in nodejs


    "eth-lightwallet": "^2.2.0",


> TypeError: undefined is not a function
    at new KeyStore (/Users/aeufemio/projects/digixglobal/web/accountmanager/node_modules/eth-lightwallet/lib/keystore.js:80:27)
    at cb (/Users/aeufemio/projects/digixglobal/web/accountmanager/node_modules/eth-lightwallet/lib/keystore.js:433:5)
    at /Users/aeufemio/projects/digixglobal/web/accountmanager/node_modules/eth-lightwallet/node_modules/scrypt-async/scrypt-async.js:474:9
    at Immediate._onImmediate (/Users/aeufemio/projects/digixglobal/web/accountmanager/node_modules/eth-lightwallet/node_modules/scrypt-async/scrypt-async.js:433:11)
    at processImmediate [as _immediateCallback] (timers.js:367:17)

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

Hunter-Nomadcommented, Feb 7, 2018

I have this problem too “lightwallet.keystore.deriveKeyFromPassword is not an function”

    function (err, pwDerivedKey) {
        var seed = lightwallet.keystore.generateRandomSeed();
        var keystore = new lightwallet.keystore(seed, pwDerivedKey);

        var address = keystore.getAddresses()[0];
        var prv_key = keystore.exportPrivateKey(address, pwDerivedKey);
        console.log('address and key: ', address, prv_key);
Vijay-clustrexcommented, Feb 3, 2018

@tymat Getting this same issue, my node version is 6.9.2 , Getting “lightwallet.keystore.deriveKeyFromPassword is not an function” . Any suggestions please

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: undefined is not a function - node.js
You can get this error when you are trying to destructure an object as it was an array. My bet is that your...
Read more >
How do I pull a private key out of a keystore using eth- ...
I am using eth-lightwallet on a NodeJS server. I am getting a stack trace when I try and get the private key from...
Read more >
-> Using password and seed able to get Keystore but what if I only have privateKey and I want to import wallet/address. 0...
Read more >
Uncaught TypeError | Is Not A Function | Solution - YouTube
Have you encountered an error like:- Uncaught TypeError - Some selector is not a function - jQuery is not a function - owlCarousel...
Read more >
A Lightweight JavaScript Wallet for Node and Browser - Morioh
LightWallet is a HD wallet that can store your private keys encrypted in the browser to allow you to run Ethereum dapps even...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found