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/did web create key #430

Closed

Conversation

LiranCohen
Copy link
Member

Was fiddling with did:web and noticed that the owner key ID and Controller were mismatched within the CreateDoc function.

Searched around and saw that it was also mismatched on the did:peer resolve method.

Copy link
Member

@decentralgabe decentralgabe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you!

@codecov-commenter
Copy link

codecov-commenter commented Jul 14, 2023

Codecov Report

Merging #430 (b80a228) into main (b08da50) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #430   +/-   ##
=======================================
  Coverage   56.95%   56.95%           
=======================================
  Files          67       67           
  Lines        7334     7334           
=======================================
  Hits         4177     4177           
  Misses       2419     2419           
  Partials      738      738           
Impacted Files Coverage Δ
did/peer/peer0.go 58.54% <100.00%> (ø)
did/web/web.go 70.64% <100.00%> (ø)

Copy link
Contributor

@andresuribe87 andresuribe87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing! Would you mind adding a test that failed before these changes were made?

@LiranCohen
Copy link
Member Author

Thanks for fixing! Would you mind adding a test that failed before these changes were made?

Yup I could do that.

@LiranCohen
Copy link
Member Author

Added tests, let me know if you'd like me to modify it or add to it in any way to enhance overall testing.

Screenshot 2023-07-14 at 4 54 22 PM
Screenshot 2023-07-14 at 5 02 59 PM

This is what it looked like failing on main.

cc @andresuribe87

Copy link
Contributor

@andresuribe87 andresuribe87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing thanks!

@LiranCohen
Copy link
Member Author

Rebased main and pushed.

andresuribe87 and others added 5 commits July 26, 2023 13:18
* Did Web Validation

* lint and test fix

* content type const

---------

Co-authored-by: Gabe <[email protected]>
* Fixed resolution problems.

* Add canonical ID when applying patch changes to a did doc

* ptr
* Added docs and fixed required fields for resolution

* Nicer lines
* update vcs

* fix lint

* update go version

* pr comments

* pr comments
@decentralgabe
Copy link
Member

sorry @LiranCohen can you rebase once more and I'll merge?

@decentralgabe
Copy link
Member

merging in #430

@LiranCohen LiranCohen deleted the fix/did-web-create-key-id branch August 31, 2023 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants