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

Agent resolver refreshes did store and cache #914

Merged
merged 11 commits into from
Oct 11, 2024

Conversation

LiranCohen
Copy link
Member

@LiranCohen LiranCohen commented Sep 26, 2024

This PR adds update functionality to DidApi which will store an updated did document and (optionally) publish the updated document if the did is a did:dht method, the resolution cache is pre-populated with the updated document.

Additionally the AgentDidResolverCache now updates the DID Store with any newly resolved DID to make sure the locate store is in sync wit the resolved DID.

The BearerDid import method now checks if a key already exists in the key manager before attempting to import it when importing an portableDid.

Copy link

changeset-bot bot commented Sep 26, 2024

🦋 Changeset detected

Latest commit: 3e68aae

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages
Name Type
@web5/agent Minor
@web5/dids Minor
@web5/identity-agent Minor
@web5/proxy-agent Minor
@web5/user-agent Minor
@web5/api Patch
@web5/credentials Patch
@web5/browser Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@LiranCohen LiranCohen force-pushed the lirancohen/did-storage-as-cache branch from 8a4ac06 to 258f590 Compare September 26, 2024 22:04
Copy link
Contributor

github-actions bot commented Sep 26, 2024

TBDocs Report

✅ No errors or warnings

@web5/api

  • Project entry file: packages/api/src/index.ts

@web5/crypto

  • Project entry file: packages/crypto/src/index.ts

@web5/crypto-aws-kms

  • Project entry file: packages/crypto-aws-kms/src/index.ts

@web5/dids

  • Project entry file: packages/dids/src/index.ts

@web5/credentials

  • Project entry file: packages/credentials/src/index.ts

TBDocs Report Updated at 2024-10-11T16:46:11Z 3e68aae

@LiranCohen LiranCohen changed the title agent resolver refreshes did store and cache [WIP] Agent resolver refreshes did store and cache Sep 26, 2024
Copy link

codecov bot commented Sep 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.34%. Comparing base (aaf4b4a) to head (3e68aae).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #914      +/-   ##
==========================================
+ Coverage   93.28%   93.34%   +0.05%     
==========================================
  Files         118      118              
  Lines       33558    33660     +102     
  Branches     2707     2728      +21     
==========================================
+ Hits        31304    31419     +115     
+ Misses       2213     2200      -13     
  Partials       41       41              
Components Coverage Δ
agent 87.74% <100.00%> (+0.20%) ⬆️
api 99.61% <ø> (ø)
common 95.02% <ø> (ø)
credentials 94.95% <ø> (ø)
crypto 93.79% <ø> (ø)
dids 97.77% <100.00%> (+<0.01%) ⬆️
identity-agent 96.42% <ø> (ø)
crypto-aws-kms 100.00% <ø> (ø)
proxy-agent 96.42% <ø> (ø)
user-agent 96.57% <ø> (ø)

@LiranCohen LiranCohen force-pushed the lirancohen/did-storage-as-cache branch from 26a172c to 617c35b Compare September 26, 2024 22:28
@LiranCohen LiranCohen force-pushed the lirancohen/did-storage-as-cache branch from fe4b72a to f7920ef Compare October 10, 2024 20:17
@LiranCohen LiranCohen marked this pull request as ready for review October 11, 2024 16:51
@LiranCohen LiranCohen changed the title [WIP] Agent resolver refreshes did store and cache Agent resolver refreshes did store and cache Oct 11, 2024
@LiranCohen LiranCohen merged commit bd1cb00 into main Oct 11, 2024
35 checks passed
@LiranCohen LiranCohen deleted the lirancohen/did-storage-as-cache branch October 11, 2024 20:30
@github-actions github-actions bot mentioned this pull request Oct 10, 2024
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