-
Notifications
You must be signed in to change notification settings - Fork 18
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
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 <[email protected]>
Co-authored-by: bchamagne <[email protected]>
Co-authored-by: bchamagne <[email protected]>
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.
👍
7038ae1
into
archethic-foundation:develop
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 thepackage.json
andpackage-lock.json
files, as well as additions to thecrypto.test.ts
file.