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

Update keystore examples #6

Merged
merged 2 commits into from
Jul 10, 2024
Merged

Update keystore examples #6

merged 2 commits into from
Jul 10, 2024

Conversation

nohkwak
Copy link
Contributor

@nohkwak nohkwak commented Jun 28, 2024

  • Update keystore example in ethers-ext
  • Add keystore example in web3js-ext

@nohkwak nohkwak self-assigned this Jun 28, 2024
console.log("\ndecrypted privateKey");
console.log(account[0].privateKey);

web3.eth.accounts.wallet.encrypt(password2).then((encryptedKey2) => {
Copy link
Member

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

Copy link
Contributor Author

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.

Copy link
Member

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.

Copy link
Contributor Author

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

Copy link
Contributor Author

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.

Copy link
Contributor

@blukat29 blukat29 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nohkwak nohkwak merged commit 8527b12 into kaiachain:dev Jul 10, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

3 participants