Skip to content

[feature] W3ID: Base class export #12

@sosweetham

Description

@sosweetham

Description

The W3ID features will be exported as a modular library that will implement the specification as provided here.

Within the prototype's scope a typescript implementation will be developed as the lib which will further be used in all the products that rely on w3id.

The lib would consist of a single factory class that the consumer applications would be able create a usable W3ID class with, catered to the application's own implementation details like, registry used, among other details.

The returned class is what would be used for all w3id generations and operations performed on any w3id, like rotation.

The generation and rotation of the W3ID is determined by the registry used so, it's intrinsically dependent on the factory, due to dependence on the application's configuration for the registry and seed used and so would be referenced as sub components of the return of the factory.

Reference

%%{init: {"theme": "default"}}%%
graph TD
    CA[Consumer Application]
    subgraph "W3ID Library"
        WF[W3ID Factory sub-issue #13]
        WI[W3ID Instance]
        R[Registry Component]
        SC[Seed / Config]
    end

    CA -->|Calls create W3ID config| WF
    WF -->|Instantiates| WI
    WI -->|Initializes registry| R
    WI -->|Configured with| SC
    CA -->|Calls generate| WI
    CA -->|Calls rotate| WI
Loading

Acceptance Criteria

Implements components as defined.
Implements tests for the same

Sub-issues

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions