Closed devhyunjae closed 3 years ago
Hi, thank you for reporting the bug. :)
This is a bug caused by modifying the original data right away when decrypting. Modifications are included in the PR below, and when the PR is merged, the rc version is released and can be used. https://github.com/klaytn/caver-js/pull/405
I will let you know when the rc version is released. Thank you so much :)
This issue has been resolved in caver-js v1.5.6-rc.6, so i will close this issue. If there is an unresolved issue, please feel free to open it again. :)
DEMO
https://codesandbox.io/s/serene-pare-05puk?file=/src/App.js
Describe the bug A clear and concise description of what the bug is.
caver.klay.accounts.decrypt
throws unexpected error when executed multiple times.Invalid keystore V3 format: 'crypto' is not defined.
It should only throw this error
Key derivation failed - possibly wrong password
How to reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen. It should only throw this error
Key derivation failed - possibly wrong password
Attachments If applicable, add data, logs or screenshots to help explain your problem.
Environment (please complete the following information)
Additional context Add any other context about the problem here.