This repository has been archived by the owner on Mar 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Crypter/Wallet crypto operations
The current wallet is calling Pack/Unpack This behavior has now changed and delegated to a newer Packager interface In addition, operations involving private keys have been moved to the wallet. Namely, DerviveKEK() is the only function in the crypto functionality that deals with private keys Aries framework has been updated with new context functions to support the new structure. In addtion to WithWallet(), 2 new functions are added to the context provider: WithCrypter() and WithPackager(). JWE Crypto functionality depends on these providers in the following order: 1. WithWallet() 2. WithCrypter() 3. WithPackager() Also, minor refactoring of function names in the crypter was done for better readability. Finally the recipient key is no longer needed in Crypter.Decrypt() as it will be matched with the recipients's list in the envelope and the wallet's first key found. Signed-off-by: Baha Shaaban <[email protected]>
- Loading branch information
Baha Shaaban
committed
Oct 10, 2019
1 parent
3dfb648
commit 393589c
Showing
41 changed files
with
1,222 additions
and
788 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.