Skip to content

feat: add driver for did:trail#546

Open
chrishooooo-netizen wants to merge 1 commit into
decentralized-identity:mainfrom
chrishooooo-netizen:feat/did-trail-driver
Open

feat: add driver for did:trail#546
chrishooooo-netizen wants to merge 1 commit into
decentralized-identity:mainfrom
chrishooooo-netizen:feat/did-trail-driver

Conversation

@chrishooooo-netizen

@chrishooooo-netizen chrishooooo-netizen commented Apr 21, 2026

Copy link
Copy Markdown

This PR adds a driver for the did:trail DID method.

did:trail is a W3C DID method for AI agent identity, built on DID Core v1.1 with DataIntegrityProof / eddsa-jcs-2023. Three trust tiers: self-signed (Tier 0), org (Tier 1), agent (Tier 2).

Tier 0 (self-signed) is implemented and resolves without a registry — the public key is encoded in the DID itself. Tier 1 and Tier 2 require the TRAIL Registry (in development); the driver returns notFound for those until the registry is live.

Test identifier

did:trail:self:zEFoeeXsQtCAK9itr35Hf8W2HF5tAPTrKUKK1nC3RnUx4

Changes

  • uni-resolver-web/src/main/resources/application.yml — driver pattern + test identifier
  • docker-compose.ymldriver-did-trail service on port 8086

Adds the did:trail Universal Resolver driver to the DIF Universal
Resolver. The did:trail method is defined at https://trailprotocol.org
and implements the W3C DID Core specification.

Driver image: ghcr.io/trailprotocol/did-trail-universal-resolver-driver
Driver repo: https://github.com/trailprotocol/did-trail-universal-resolver-driver

Tier 0 (self-signed) DIDs resolve without a registry. Org and agent
mode resolution will be added once the TRAIL Registry is live.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@chrishooooo-netizen

Copy link
Copy Markdown
Author

Just a friendly second ping on this one - happy to address any review feedback.

The driver image is published and resolves did:trail DIDs end-to-end against the TRAIL spec v1.2.0-draft. Test vector:

did:trail:self:zEFoeeXsQtCAK9itr35Hf8W2HF5tAPTrKUKK1nC3RnUx4

The related W3C did-extensions registration (w3c/did-extensions#669) is in active review.

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.

1 participant