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

feat(crypto): Add encryption functionality #196

Merged
merged 12 commits into from
Jun 11, 2024

Conversation

Rudy-Perrin
Copy link
Contributor

This pull request adds new encryption functionality to the crypto module. It includes the following commits:

  • feat(crypto): getGenesisAddress

  • feat(crypto): getServiceGenesisAddress

  • feat(crypto): encryptSecret

  • test(crypto): add test for encryptSecret

  • refactor(crypto): improve imports, typing and JSDoc

It is necessary to do an npm install because the changes include updates to the package.json and package-lock.json files, as well as additions to the crypto.test.ts file.

Copy link
Member

@bchamagne bchamagne left a comment

Choose a reason for hiding this comment

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

Hello Rudy, thanks again for a great PR.
Do you mind if I directly commit a few things on this PR?

Here's what I propose to change:

  • accept multiple public keys
  • add a decryptSecret function
  • add a test to do a encryptSecret + decryptSecret and check input == output

src/crypto.ts Outdated Show resolved Hide resolved
tests/crypto.test.ts Outdated Show resolved Hide resolved
tests/crypto.test.ts Outdated Show resolved Hide resolved
@bchamagne
Copy link
Member

By the way, I like what you did with JSDoc. I think we should generate the doc now.

Capture d’écran 2024-05-15 à 16 55 19

@Rudy-Perrin
Copy link
Contributor Author

Yes I actually planned to use typedocs. #202

Rudy-Perrin and others added 3 commits May 24, 2024 23:48
Copy link
Member

@bchamagne bchamagne left a comment

Choose a reason for hiding this comment

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

👍

@samuelmanzanera samuelmanzanera added external-contribution Contribution by non core team feature New feature request labels Jun 3, 2024
src/crypto.ts Outdated Show resolved Hide resolved
@samuelmanzanera samuelmanzanera merged commit 7038ae1 into archethic-foundation:develop Jun 11, 2024
2 checks passed
@Rudy-Perrin Rudy-Perrin deleted the crypto branch June 11, 2024 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external-contribution Contribution by non core team feature New feature request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants