Skip to content

Define service interfaces in packages/services #352

@ashleythedeveloper

Description

@ashleythedeveloper

The credential issuance workflow involves three discrete operations: issuing (signing) a credential, storing the credential, and publishing the credential link. Each of these should be abstracted behind a well-defined interface so that implementations can be swapped without changing consuming code.

These interfaces act as contracts that define the expected behaviour without coupling to a specific implementation. Both the interfaces and their implementations should reside within the packages/services package.

Acceptance Criteria:

  • Define IVerifiableCredentialService interface with a method to issue/sign a credential payload and return a signed verifiable credential.
  • Define IStorageService interface with a method to store a credential and return the storage URI and hash.
  • Define IIdentityResolverService interface with a method to register a credential link against an identifier/scheme.
  • All interfaces should have clearly typed inputs and outputs.
  • Export interfaces and associated types from the services package.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions