-
Notifications
You must be signed in to change notification settings - Fork 517
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: public did mediator routing keys as did keys #1977
fix: public did mediator routing keys as did keys #1977
Conversation
Squash of multiple commits: fix: revert changes to manager fix: don't use dereference_as fix: correct typo in method fix: remove stray print statement Signed-off-by: Daniel Bluhm <[email protected]>
@cjhowland and I need to add unit tests to this PR ensuring we've got coverage of the added lines. We also need to ensure that if the resolved routing key value is a did:key but not a did:key URL that we perform an appropriate transformation. |
Signed-off-by: Char Howland <[email protected]>
Signed-off-by: Char Howland <[email protected]>
Signed-off-by: Char Howland <[email protected]>
Signed-off-by: Char Howland <[email protected]>
Signed-off-by: Char Howland <[email protected]>
…-keys Fix/public did mediator routing keys
Signed-off-by: Daniel Bluhm <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #1977 +/- ##
==========================================
- Coverage 93.51% 93.51% -0.01%
==========================================
Files 539 539
Lines 34600 34615 +15
==========================================
+ Hits 32355 32369 +14
- Misses 2245 2246 +1 |
Signed-off-by: Char Howland <[email protected]>
Signed-off-by: Char Howland <[email protected]>
…-keys fix: account for changes to KeyType
Is this finished testing? |
Signed-off-by: Char Howland <[email protected]>
…-keys fix: black code formatter
@andrewwhitehead yes, this is ready for review |
Kudos, SonarCloud Quality Gate passed! |
This PR fixes an issue @reflectivedevelopment found while using the recent changes made to support routing keys associated with public DID endpoints.
Without this fix, when creating a public DID OOB invitation, creation will fail due to no DIDComm service being found. This stemmed from PyDID expecting that routing keys be expressed strictly as DID URLs. Previously, we were resolving the routing keys as raw base58 encoded public keys. This PR makes it so that routing keys are resolved as did:key url values (if already did:key, simply pass through the values but if not, transform into did:key urls).
Credit to @cjhowland for doing most of the digging on this issue 🙂