Note: This issue is not about supporting bip39 passphrase, but about wallet encryption. The seed stored in the wallet-db should be encrypted with a password.
[ ] Install "@types/bip38" as dev-dependency
[ ] Password should be optional in init(). If no password is passed, use the default password 12345678.
[ ] Use "bip38" lib to do encryption/decryption.
[ ] Implement async setPassword(newPassword, oldPassword): void in Wallet class to add or update password
Note: This issue is not about supporting bip39 passphrase, but about wallet encryption. The seed stored in the wallet-db should be encrypted with a password.
init()
. If no password is passed, use the default password12345678
.async setPassword(newPassword, oldPassword): void
in Wallet class to add or update password