Skip to content

fix/delegation chain document - #563

Merged
maycon-mello merged 4 commits into
masterfrom
fix/delegation-chain-document
Jul 23, 2026
Merged

fix/delegation chain document#563
maycon-mello merged 4 commits into
masterfrom
fix/delegation-chain-document

Conversation

@maycon-mello

Copy link
Copy Markdown
Collaborator
  • should not add delegation chain document to the credential store

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the delegation offer issuance flow to avoid persisting delegation-chain ancestor credentials into the holder’s credential store, while still retaining delegation-chain information in the wallet for later use.

Changes:

  • Replaces per-ancestor addDocument persistence with a single stored delegation-chain document on receipt of an issued delegated credential.
  • Updates the integration test to assert only the delegated credential is present in the credential store and that the chain is stored separately.
  • Renames the received issuance message variable for clarity in the integration test.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
packages/core/src/delegation/delegation-offer.ts Changes how delegation-chain data is persisted when handling issue-credential messages.
integration-tests/delegation-offer.test.ts Extends assertions to ensure delegation-chain ancestors are not added to the credential store and validates the stored chain document.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/core/src/delegation/delegation-offer.ts Outdated
Comment thread integration-tests/delegation-offer.test.ts Outdated
Comment thread integration-tests/delegation-offer.test.ts
@maycon-mello
maycon-mello merged commit 40272d7 into master Jul 23, 2026
7 checks passed
@maycon-mello
maycon-mello deleted the fix/delegation-chain-document branch July 23, 2026 21:09
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