Consensys / eth-lightwallet

Lightweight JS Wallet for Node and the browser
MIT License
1.46k stars 501 forks source link

Ethereum LightWallet exception at keystore.generateNewAddress: Cannot read property 'encStr' of undefined #176

Open Muhammad-Altabba opened 6 years ago

Muhammad-Altabba commented 6 years ago

Having an error when running the page: "example_demo_video.html". At the following snippet en exception is thrown!

var seed = document.getElementById('seed').value var password = prompt('Enter Password to encrypt seed', 'Password') var keystore = new lightwallet.keystore(seed, password)

keystore.generateNewAddress(password, 3)

Exception call stack:


Uncaught TypeError: Cannot read property 'encStr' of undefined
    at Function.KeyStore._decryptString (lightwallet.js:322)
    at KeyStore.isDerivedKeyCorrect (lightwallet.js:303)
    at KeyStore.generateNewAddress (lightwallet.js:579)
    at setSeed (example_demo_video.html:15)
    at HTMLButtonElement.onclick (example_demo_video.html:55)
kazaff commented 6 years ago

m2, how can i fix it?

MinhoKim1018 commented 5 years ago

cause you made keystore without Mnemonic code.

check your Mnemonic code