Skip to content

Improve did uri typing#28

Merged
domleboss97 merged 1 commit intomainfrom
dominic/clean-up-did-uri-types
Aug 1, 2025
Merged

Improve did uri typing#28
domleboss97 merged 1 commit intomainfrom
dominic/clean-up-did-uri-types

Conversation

@domleboss97
Copy link
Collaborator

  • createDidPkh... methods were returning a generic DidUri, causing TS errors when attempting to pass a generated did pkh uri to methods expecting the DidPkhUri as input.
  • Update DidUriWithDocument to take a type parameter that defines the type of the returned did, and use that in did web and pkh creation.
  • Define DidPkh and DidKey types using the new generic DidUri type added in Add wider chain support to did:pkh #27 .

Copy link
Contributor

@edspencer edspencer left a comment

Choose a reason for hiding this comment

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

LGTM

@domleboss97 domleboss97 merged commit 3d1f83f into main Aug 1, 2025
2 checks passed
@domleboss97 domleboss97 deleted the dominic/clean-up-did-uri-types branch August 1, 2025 19:54
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.

2 participants