Skip to content

Conversation

fforbeck
Copy link
Member

@fforbeck fforbeck commented May 26, 2025

Add universal did:plc resolver and signature verifier package

This PR introduces the @storacha/did-plc package, providing universal (Node + browser) utilities for working with the did:plc method.

Initial features include:

  • Resolving did:plc identifiers to their DID Documents via the public PLC directory.
  • Verifying Ed25519 signatures against all verification methods in a did:plc DID Document (current owner check).

Related: storacha/project-tracking#463

@fforbeck fforbeck requested a review from alanshaw May 26, 2025 19:42
@fforbeck fforbeck self-assigned this May 26, 2025
@fforbeck fforbeck removed the request for review from alanshaw May 28, 2025 12:42
@fforbeck fforbeck requested a review from alanshaw May 30, 2025 13:41
@fforbeck
Copy link
Member Author

@alanshaw this is the first iteration, but still in progress - I'm mapping out the places we need to change to support the did:plc type, and adding any logic that may be required to parse/handle that info.

@fforbeck
Copy link
Member Author

I will break it into 2 PRs:

    1. Adding the did-plc package
    1. Updating the existing code to support did:plc type

@alanshaw
Copy link
Member

@fforbeck suggestion: collapse the @storacha/did-mailto into a @storacha/did package where I can import @storacha/did/mailto or @storacha/did/plc?

@fforbeck
Copy link
Member Author

@fforbeck suggestion: collapse the @storacha/did-mailto into a @storacha/did package where I can import @storacha/did/mailto or @storacha/did/plc?

I think it's a good idea, but I'm wondering if it's worth the effort. From what I understand, the goal is to eventually get rid of did:mailto, so I would keep them separate initially.

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