hyperledger-identus / hyperledger-identus/sdk-ts

Add a reusable DID provider helper for offline-first workflows

Open
#620 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
30
Forks
41
Avg merge
14m
Merged PRs (30d)
5

Description

Proposed feature

add a reusable DID provider helper for offline-first workflows

Summary

Add a small reusable helper module for PRISM DID creation in the TypeScript SDK. This is a beginner-friendly step toward the mentorship project’s offline-first SSI dashboard.

Motivation

The mentorship project needs a reusable DID creation flow that can work in the browser and support future Cardano / CIP-30 publishing. A small DID helper is a good first contribution because it:

  • reuses the existing SDK building blocks
  • fits the offline-first architecture
  • can be tested independently
  • can later be used by the web dashboard and other apps

Files to Add / Update

  • packages/lib/sdk/src/modules/did-provider.ts
  • packages/lib/sdk/tests/modules/did-provider.test.ts
  • packages/lib/sdk/src/index.ts

Acceptance Criteria

  • A reusable createPrismDID() helper exists
  • The helper uses the SDK’s local Apollo/Castor implementation
  • A unit test covers the helper
  • The helper is exported from the package entry point
  • The code compiles with the SDK typecheck

Notes

This should stay small and beginner-friendly. Avoid adding UI work or Cardano publishing logic in this task; those can come later.

Feature description

Proposed Change

Add a helper module that:

  • creates a PRISM DID using the SDK’s Apollo + Castor layers
  • supports a deterministic seed for testing
  • returns the DID, short-form DID, and private key information
  • is exported from the main SDK entry point
Anything else?

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the existing Apollo and Castor SDK building blocks, then inspect packages/lib/sdk/src/modules/did-provider.ts and the package entry point at packages/lib/sdk/src/index.ts. Add the reusable createPrismDID() helper and its test in packages/lib/sdk/tests/modules/did-provider.test.ts; done means the helper supports deterministic seeds, returns the specified DID and key information, is exported, and passes the SDK typecheck.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
security, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
74/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.