-
Notifications
You must be signed in to change notification settings - Fork 129
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
[bug] Secp256r1 public keys are losing parity in @veramo/kms-local #1135
Labels
bug
Something isn't working
Comments
mirceanis
added a commit
that referenced
this issue
Feb 24, 2023
…curve closes #1135 Existing keys still have to be updated manually
mirceanis
added a commit
that referenced
this issue
Feb 24, 2023
closes #1135 Existing keys still have to be updated manually
mirceanis
added a commit
that referenced
this issue
Feb 24, 2023
…curve closes #1135 Existing keys still have to be updated manually
mirceanis
added a commit
that referenced
this issue
Feb 24, 2023
closes #1135 Existing keys still have to be updated manually
mirceanis
added a commit
that referenced
this issue
Feb 24, 2023
* fix(data-store): decrypt keys before listing in `PrivateKeyStore.listKeys()` * fix(data-store-json): decrypt before listing in `PrivateKeyStoreJson.listKeys()` * fix(kms-local): include parity when computing publicKeyHex for P-256 curve; Existing keys still have to be updated manually * fix(did-provider-jwk): use correct parity for P-256 public keys fixes #1136 closes #1135
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug severity
4
Describe the bug
For unknown reasons the parity prefix from Secp256r1 public keys is being removed when creating or importing them:
https://github.com/uport-project/veramo/blob/9c73d98fd217ed9a612767f49a235cdbf43619cb/packages/kms-local/src/key-management-system.ts#L333
This forces broken code to be written. This works only 50% of the time:
https://github.com/uport-project/veramo/blob/0a22d9c2426c69c95263b2f0b36617794b59be62/packages/did-provider-jwk/src/jwkDidUtils.ts#L68
It looks like the fix for this would have to be invoked "manually".
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: