Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in decrypting account in wallet #64

Open
StrangerZiokan opened this issue Feb 2, 2019 · 0 comments
Open

Error in decrypting account in wallet #64

StrangerZiokan opened this issue Feb 2, 2019 · 0 comments

Comments

@StrangerZiokan
Copy link

When there is an existing wallet and the wallet file ".wlt " is available, then there is something missing that prevents decryption of the private keys using password in the wallet.

var common = nem.model.objects.create("common")("Password of NEM wallet","");
var walletAccount = wallet.accounts[0];
nem.crypto.helpers.passwordToPrivatekey(common , walletAccount , wallet.algo);
console.log(common);

Gives error as -
C:\node_modules\crypto-js\core.js:386
var hexStrLength = hexStr.length;

TypeError: Cannot read property 'length' of undefined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant