Skip to content

dcka 3147 wallet delegation policy#507

Merged
maycon-mello merged 12 commits into
masterfrom
dcka-3147-wallet-delegation-policy
May 8, 2026
Merged

dcka 3147 wallet delegation policy#507
maycon-mello merged 12 commits into
masterfrom
dcka-3147-wallet-delegation-policy

Conversation

@maycon-mello

Copy link
Copy Markdown
Collaborator
  • wallet delegation policy

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

Adds wallet delegation-policy support by introducing a new wasm delegation service plus core helpers for issuing delegatable credentials and working with delegation policies/chains.

Changes:

  • Add DelegationService (wasm) with RPC client wrappers for mobile platforms.
  • Add core delegation modules (types, policy fetch/digest attributes, credential issuance helpers, chain storage helpers) and unit tests.
  • Add integration test/fixtures for issuing a delegatable credential and resolving its embedded delegation policy.

Reviewed changes

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

Show a summary per file
File Description
packages/wasm/src/services/delegation/service.ts Implements delegation operations (issue credential, compute policy digest, fetch policy).
packages/wasm/src/services/delegation/service-rpc.ts Adds RPC client wrapper for delegation service methods.
packages/wasm/src/services/delegation/index.ts Exposes the delegation service entrypoint.
packages/wasm/src/services/delegation/index.ios.js Uses RPC client implementation on iOS.
packages/wasm/src/services/delegation/index.android.js Uses RPC client implementation on Android.
packages/core/src/delegation/delegation-utils.ts Adds helper to detect delegatable credentials via @context.
packages/core/src/delegation/delegation-types.ts Introduces TS types for delegation policy structures.
packages/core/src/delegation/delegation-policy.ts Fetches delegation policy and builds policy attributes/digest; builds role tree.
packages/core/src/delegation/delegation-policy.test.ts Unit test for role-tree builder.
packages/core/src/delegation/delegation-issuance.ts Issues delegatable credentials with embedded policy ID + digest.
packages/core/src/delegation/delegation-fixtures.ts Adds sample delegation policies used by tests.
packages/core/src/delegation/delegation-chain.ts Adds wallet persistence/read helpers for delegation chain documents.
packages/core/src/delegation/delegation-chain.test.ts Unit tests for delegation chain read/write behavior.
integration-tests/delegation/delegation-policy.test.ts Integration test issuing a delegatable credential and resolving its delegation policy.
integration-tests/delegation/delegation-fixtures.ts Integration fixtures for a travel-agency delegation policy and contexts.

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

Comment thread packages/core/src/delegation/delegation-chain.ts Outdated
Comment thread packages/core/src/delegation/delegation-policy.ts Outdated
Comment thread packages/core/src/delegation/delegation-policy.ts Outdated
Comment thread packages/core/src/delegation/delegation-issuance.ts Outdated
Comment thread packages/core/src/delegation/delegation-utils.ts Outdated
Comment thread packages/core/src/delegation/delegation-chain.ts Outdated
Comment thread packages/core/src/delegation/delegation-chain.test.ts Outdated
Comment thread packages/core/src/delegation/delegation-chain.test.ts Outdated
Comment thread packages/core/src/delegation/delegation-chain.ts Outdated
Comment thread packages/wasm/src/services/delegation/service.ts Outdated
Comment thread integration-tests/delegation/delegation-fixtures.ts
Comment thread packages/core/src/delegation/delegation-chain.ts
@maycon-mello
maycon-mello marked this pull request as ready for review May 7, 2026 02:06
@maycon-mello
maycon-mello merged commit 2c97e69 into master May 8, 2026
6 of 8 checks passed
@maycon-mello
maycon-mello deleted the dcka-3147-wallet-delegation-policy branch May 8, 2026 15:38
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