-
Notifications
You must be signed in to change notification settings - Fork 17
feat(crypto): Add encryption functionality #196
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
Conversation
Generates the genesis address from a given seed
Derives the genesis address for a given service from a keychain
Encrypts a secret using a given public key
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.
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
|
Yes I actually planned to use typedocs. #202 |
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>
bchamagne
left a comment
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.
👍

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 installbecause the changes include updates to thepackage.jsonandpackage-lock.jsonfiles, as well as additions to thecrypto.test.tsfile.