8000 feat: add `GET /.well-known/did.json` route by alanshaw · Pull Request #471 · storacha/w3infra · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: add GET /.well-known/did.json route #471

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

Merged
merged 3 commits into from
May 9, 2025
Merged

Conversation

alanshaw
Copy link
Member
@alanshaw alanshaw commented May 8, 2025

Serve a DID document like the following at /.well-known/did.json. It allows external entities to resolve and verify our did:web:

{
  "@context": "https://w3id.org/did/v1",
  "id": "did:web:up.storacha.network",
  "verificationMethod": [
    {
      "id": "did:web:up.storacha.network#owner",
      "type": "Ed25519VerificationKey2020",
      "controller": "did:web:up.storacha.network",
      "publicKeyMultibase": "z6MknTPdpBGfFysJWCJn7SbhrAA7Xmp6ZCnjH9dPxJy2T7sk"
    }
  ],
  "assertionMethod": [
    "did:web:up.storacha.network#owner"
  ],
  "authentication": [
    "did:web:up.storacha.network#owner"
  ]
}

Copy link
Member
@fforbeck fforbeck left a comment

Choose a reason for hiding this comment

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

Looks good to me. Just a minor question: should it resolve a list of DIDs? This way we can preserve old DIDs in case of changes.

@alanshaw
Copy link
Member Author
alanshaw commented May 9, 2025

Looks good to me. Just a minor question: should it resolve a list of DIDs? This way we can preserve old DIDs in case of changes.

Yeah, I mean I guess that's easily added...

@seed-deploy seed-deploy bot temporarily deployed to pr471 May 9, 2025 11:25 Inactive
@alanshaw
Copy link
Member Author
alanshaw commented May 9, 2025

@fforbeck I've added UPLOAD_API_DEPRECATED_DIDS environment var - we can add rotated keys here.

@alanshaw alanshaw requested a review from fforbeck May 9, 2025 11:26
Copy link
Member
@fforbeck fforbeck left a comment

Choose a reason for hiding this comment

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

LGTM

@alanshaw alanshaw merged commit c36fc52 into main May 9, 2025
2 of 3 checks passed
@alanshaw alanshaw deleted the feat/serve-did-document branch May 9, 2025 11:40
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
0