-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: native DIDDocuments and proper DID resolution interface (#799)
* Add base types for the compliant DIDs * Add base types for the compliant DID resolution * Add dereferencing * Refactor of Did.utils and Did.chain * Work on DID.signature * Bit more mess here and there * yarn check working fine * did.resolve implemented * DID resolver ok * AccountLinks2.chain.ts * Add resolveRepresentation to resolver * Better DID resolver * Resolver improvements * Improve API surface to keep the same abstraction level * First DID integration test passing! * More DID integration tests uncommented * More DID integration tests passing * More DID integration tests * All DID integration tests passing * Refactoring * Add utility function to add a verification method * Minor refactoring * Revert unwanted change * Remove addKeypairAsVerificationMethod function * Light DID unit tests passing * Unit tests for light and full DID passing * Minor changes to signing interfaces * DIDSignature unit tests passing * Halfway through the refactoring * Better error messages * Fix imports * Refactoring * First refactor * Fix DID dereferencing and signature resolution * Compiling! * Compiling after applying stash * Fix TestUtils * verificationRelationship -> verificationRelationships * Prepare ground for proper DID dereferencing * Add support for query params in DID URLs * Compiling again * WIP dereferencing in tests * Credential.spec.ts for legacy credential almost passing * Did.signature.spec.ts working again * Return minimal DID document when DID is deactivated or migrated * Add test for legacy signature support * Sr25519Signature2020.spec.ts test failing * Key -> verification method renaming * Key/service ID to URL * More constants * Fix yarn check * Fix JSDocs * Update tests * Minor refinements * Minor fixes * Apply suggestion * Push different yarn.lock * Fix type import * Fix integration test * Fix integration test pt.2 * Update unit tests for DidResolver.spec.ts * Half-way through new DidResolver unit tests * Unit tests for DidResolver complete * Replace buffer * Apply suggestion * Apply w3n suggestion * export type * Replace Buffer with Uint8Array * Add multikey context * Fix unit tests for linked signature suites * Legacy support for document loader * Make getStoreTxFromDidDocument only used in tests * Use Object.fromEntries * Refactor exportQueryParamsFromUri * Use resolve instead of dereference * Fixes * Revert DidSignature renaming * Rename URI to DID and keep DID URL
- Loading branch information
Showing
72 changed files
with
3,770 additions
and
2,880 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.