Skip to content

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
Contributor

@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

@bchamagne
Copy link
Contributor

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
Co-authored-by: bchamagne <74045243+bchamagne@users.noreply.github.com>
Co-authored-by: bchamagne <74045243+bchamagne@users.noreply.github.com>
Co-authored-by: bchamagne <74045243+bchamagne@users.noreply.github.com>
Copy link
Contributor

@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
@samuelmanzanera samuelmanzanera merged commit 7038ae1 into archethic-foundation:develop Jun 11, 2024
@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