-
Notifications
You must be signed in to change notification settings - Fork 132
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
fix(kms-local): replace buggy didcomm clone with did jwt implementation #548
fix(kms-local): replace buggy didcomm clone with did jwt implementation #548
Conversation
Codecov Report
@@ Coverage Diff @@
## next #548 +/- ##
==========================================
+ Coverage 67.58% 77.17% +9.58%
==========================================
Files 62 71 +9
Lines 1530 1866 +336
Branches 247 314 +67
==========================================
+ Hits 1034 1440 +406
- Misses 400 424 +24
+ Partials 96 2 -94 |
…rom `did-jwt` fix(kms-local): replace buggy didcomm-js clone with anon encryption from `did-jwt` fixes #538
Please use `@veramo/kms-local` instead
b148385
to
d19879d
Compare
@@ -41,7 +41,7 @@ export class KeyManager implements IAgentPlugin { | |||
keyManagerGet: this.keyManagerGet.bind(this), | |||
keyManagerDelete: this.keyManagerDelete.bind(this), | |||
keyManagerImport: this.keyManagerImport.bind(this), | |||
keyManagerEncryptJWE: this.keyManagerDecryptJWE.bind(this), |
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.
Oooohweee, what a typo!!
This is likely the culprit of #306
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.
lgtm
This fixes an old bug that was causing incorrect didcomm messaging in veramo.
The
kms-local
plugin now uses thedid-jwt
implementation of JWE using the anon [de]encrypter.kms-local
plugin can be used in a react-native context.It works fine. Don't forget to add
@ethersproject/shims
.libsodium-wrappers
dependency and replaces it with@stablelib/*
which should make it easier to work with multiple JS environments.kms-local-react-native
. Usekms-local
instead.fixes #538
probably also fixes #306