Skip to content
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: always encode keys according to RFCs #733

Conversation

TimoGlastra
Copy link
Contributor

Keys were not encoded in services according to the RFCs. This is quite complex TBH as there's three different service types with three different encodings....

The biggest problem was the encoding of the did-communciation used in did documents, those should use did references local to the did, not did:key dids and not raw public keys.

This PR updates a lot of places to pass around keys so we have a consistent format to pass around keys in the framework, which made it a lot easier to work with the different formats (we never know which of the three encodings recipientKey of type string means).

A lot more changes than I initially anticipated, but this is an important fix to adhere to the RFCs.

Dependant on #717. We can merge that PR first or merge this PR into #717

@TimoGlastra TimoGlastra requested a review from a team as a code owner May 1, 2022 16:15
@TimoGlastra TimoGlastra merged commit 73d296f into openwallet-foundation:feat/out-of-band May 2, 2022
@TimoGlastra TimoGlastra deleted the fix/incorrect-key-encoding-in-services branch May 2, 2022 14:01
jakubkoci pushed a commit that referenced this pull request May 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant