Skip to content

Refactor DIM business logic to use UniversalDidService for Did Validation #1428

@leandro-cavalcante

Description

@leandro-cavalcante

Description

With the implementation of Bring Your Own Wallet, the validation of a DID is necessary. As this validations are for DIM wallet and also for BYOW a new service UniversalDidResolver was created.

As DIM DIMBusinessLogic already contains the validation of did document and schema,
I want to refactor the existing methods in the DIMBusinessLogic to point to the new UniversalDidResolver service,
so that we can separate the code to the correct domain and also avoid duplications.

Acceptance Criteria

  • The class DimBusinessLogic has to be enhanced to use UniversalDidResolver service
  • validateSchema and validateDid shall be replaced to the methods in the UniversalDidResolver class
  • Unit test and integration test

Additional Information

Please refer to the following ticket for better understanding of BYOW:
eclipse-tractusx/sig-release#1160

The new service UniversalDidResolver can be found in the following PR:
#1422

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestmerge postponedthe merge of this PR shall be postponed until all prerequisites are fulfilled

    Type

    Projects

    Status

    IN PROGRESS

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions