Skip to content

Conversation

@meiersi-da
Copy link
Contributor

@meiersi-da meiersi-da commented Dec 16, 2025

Draft code for a CN credential standard built in a similar fashion to how the CN token standard is built. The CIP text for it has not yet been written. The high-level idea is that:

  • The standard defines APIs for

    • creating and updating credentials in a registry (see the CredentialRegistry interface)
    • querying the credentials using an off-ledger API, which also supports filtering (see the OpenAPI spec)
    • fetching credential in Daml code (see the CredentialRecord interface)
  • The SVs run a credential registry as part of their Amulet Name Service (see the AnsCredentialRegistry implementation of the interface)

    • SVs protect their resources by requiring a refresh of the credential records every 90 days. Thus the traffic for the refresh protects them from somebody spamming the ACS of the DSO party
    • That registry is also used to solve the off-ledger API discovery problem in token standard.
  • Third-parties are welcome to run registries as well. Their off-ledger APIs can be discovered in the ANS registry from a self-published credential by their party with a well-known key.

  • Concrete sets of claims for specific use-cases are defined as part of additional CIPs, as outlined in https://docs.google.com/presentation/d/1PXVwQU98dPo4hhIrXt1U5pAutWa4YUlvS61xIiBMhgc/edit?slide=id.g328343e708d_0_468#slide=id.g328343e708d_0_468

Pull Request Checklist

Cluster Testing

  • If a cluster test is required, comment /cluster_test on this PR to request it, and ping someone with access to the DA-internal system to approve it.
  • If a hard-migration test is required (from the latest release), comment /hdm_test on this PR to request it, and ping someone with access to the DA-internal system to approve it.

PR Guidelines

  • Include any change that might be observable by our partners or affect their deployment in the release notes.
  • Specify fixed issues with Fixes #n, and mention issues worked on using #n
  • Include a screenshot for frontend-related PRs - see README or use your favorite screenshot tool

Merge Guidelines

  • Make the git commit message look sensible when squash-merging on GitHub (most likely: just copy your PR description).

@meiersi-da meiersi-da changed the title DRAFT: credential registry standard API DRAFT: CN credential standard Dec 16, 2025
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