-
Notifications
You must be signed in to change notification settings - Fork 7
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
Update keystore examples #6
Conversation
nohkwak
commented
Jun 28, 2024
- Update keystore example in ethers-ext
- Add keystore example in web3js-ext
console.log("\ndecrypted privateKey"); | ||
console.log(account[0].privateKey); | ||
|
||
web3.eth.accounts.wallet.encrypt(password2).then((encryptedKey2) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nohkwak Please match ethers and web3js examples.
The encrypt and decrypt code pattern looks different
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kjeom
The built-in functions of ethers and web3 are different, so let’s talk about it at tomorrow’s meeting.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nohkwak
ethers-ext: encrypt - decrypt.then(encrypt)
web3js-ext: encrypt - decrypt - encrypt
I mean the pattern needs to be matched.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
current: encrypted - decrypt - encrypt - decrypt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kjeom
I updated examples by removing the callback functions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM