Skip to content

feat: high-level did helper api #881

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

Merged
merged 78 commits into from
Jul 24, 2024
Merged

feat: high-level did helper api #881

merged 78 commits into from
Jul 24, 2024

Conversation

rflechtner
Copy link
Contributor

@rflechtner rflechtner commented Jul 17, 2024

fixes https://github.com/KILTprotocol/ticket/issues/3359

Adds a high-level did api for simplifying the most common DID management operations.

How to test:

Currently covered by integration- and unit tests; I'd suggest we release a beta after merging this to develop.

Checklist:

  • I have verified that the code works
  • I have verified that the code is easy to understand
    • If not, I have left a well-balanced amount of inline comments
  • I have left the code in a better state
  • I have documented the changes (where applicable)
    • Either PR or Ticket to update the Docs
    • Link the PR/Ticket here

@rflechtner rflechtner mentioned this pull request Jul 17, 2024
abdulmth and others added 22 commits July 22, 2024 09:43
Co-authored-by: Raphael Flechtner <39338561+rflechtner@users.noreply.github.com>
* refactor: move did helpers interfaces to types
* refactor: make sure issuer/holder functions can work with did helpers
* chore: nitpicks
* refactor!: move issuer options use them on lower-level issue too
* test: fix unit tests
* fix: unsigned submittable
* fix: import
* fix: tests
* fix: merge issues
* fix: addressFromRandom
* chore: move test to integration
* fix: lint
* chore: use return in extractSubmitter

---------

Co-authored-by: Raphael Flechtner <raphael@kilt.io>
@rflechtner rflechtner marked this pull request as ready for review July 24, 2024 12:08
@rflechtner
Copy link
Contributor Author

@Dudleyneedham & @ntn-x2 The Did helper implementation is now completed and all issues we found have been fixed. This PR gives you a chance to skim over the aggregated changes; I would would merge this to develop shortly and start preparing a beta release from there.
Things I would tackle via PRs to develop:

  • rewrite bundle tests to use the DidHelpers; this is equally a documentation- and a test task, as we'd write the bundle tests such that they run through everything that can be done with DidHelpers to provide code examples for Chris to work with in updating the docs
  • finalise the set of functions exported from sdk-js; we talked about adding CType stuff, and we considered removing the signAndSubmit.

@rflechtner
Copy link
Contributor Author

@Dudleyneedham & @ntn-x2 I'm not expecting a thorough review here, but you may want to skim over it and check that you are happy with the high-level changes

Copy link
Member

@Dudleyneedham Dudleyneedham left a comment

Choose a reason for hiding this comment

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

LGTM! I personally would like to see some clean up in the future. There are some internal code that are messy. Due to time constraints I would consider this debt we have accumulated.

Secondly, after using and showing it to people it feels way better and more simple.

Great job guys.

Don't forget we need to expose the CType in the SDK js

@rflechtner rflechtner merged commit 21d05ab into develop Jul 24, 2024
18 checks passed
@rflechtner rflechtner deleted the rf-did-helpers branch July 24, 2024 14:43
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.

3 participants