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

Trust Resolution Library Development #6

Open
lotharking opened this issue Feb 28, 2025 · 1 comment
Open

Trust Resolution Library Development #6

lotharking opened this issue Feb 28, 2025 · 1 comment

Comments

@lotharking
Copy link

lotharking commented Feb 28, 2025

Description

The goal of this issue is to develop a library responsible for trust resolution.

Currently, verifiable credential management in Credo-TS relies on a manually maintained trust registry. Each record is created without verifying the authenticity of the corresponding DID document, meaning there is no actual trust resolution mechanism in place.

While Credo provides an ecosystem that considers trust-related aspects, the primary focus of this library may not necessarily be on validating credential types. However, it is crucial to establish a method for determining trust for services interacting with the system.

Proposed Solution

  • Implement a resolve method that:
    • Accepts a DID as input, along with optional parameters (to be defined).
    • Resolves the DID document to determine its properties and validate its authenticity.

Use Case

Both Hologram (the mobile app) and the Service Agent 2060 Service Agent are clients of this library.

  • The goal is to enable a user agent (using Hologram) to verify that the Service Agent is a trusted service through this library.

Next Steps

  • Define the optional parameters required for the resolve method.
  • Determine the best approach for DID document resolution.
  • Implement and test the method to ensure proper trust validation.
@lotharking lotharking changed the title Verifiable Trust Library Development Enhance Trust Resolution for Verifiable Credentials Mar 3, 2025
@lotharking lotharking changed the title Enhance Trust Resolution for Verifiable Credentials Trust Resolution Library Development Mar 3, 2025
@lotharking
Copy link
Author

lotharking commented Mar 3, 2025

Structure

trust-resolution-lib/
│── src/
│ │── index.ts
│ │── resolver/
│ │ │── DidValidator.ts # main resolver
│ │ │── types.ts
│ │ └── utils.ts
│ │── trust/
│ │ │── TrustValidator.ts
│── tests/
│ │── resolver.test.ts
│ │── trustValidator.test.ts
│── package.json
│── tsconfig.json
└── README.md

Resolver

Used with DidResolverService from Credo Core to call the resolveDidDocument method.

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

No branches or pull requests

1 participant