Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: separate function createwallet createdid #61

Closed

Conversation

bhavanakarwade
Copy link
Contributor

What?

  • Split create wallet and create DID functions
  • Refactored indy, web and key method functions
  • Implemented DID create API for dedicated agent
  • Implemented DID create API for multi-tenant agent

Why?

  • Splitting the wallet creation and DID creation functions allows for better organization and separation of concerns within the codebase

Signed-off-by: bhavanakarwade <[email protected]>
Signed-off-by: bhavanakarwade <[email protected]>
Signed-off-by: bhavanakarwade <[email protected]>
… feat/separate-function-createwallet-createdid
Signed-off-by: bhavanakarwade <[email protected]>
Signed-off-by: bhavanakarwade <[email protected]>
const didMethod = `did:indy:${data.method}`
let result
switch (createDidOptions.method) {
case DidMethod.Indy:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can check the supported key type before calling the specific handler function. just a thought

src/controllers/did/DidController.ts Outdated Show resolved Hide resolved
src/controllers/did/DidController.ts Outdated Show resolved Hide resolved
src/controllers/did/DidController.ts Outdated Show resolved Hide resolved
src/controllers/did/DidController.ts Outdated Show resolved Hide resolved
Signed-off-by: bhavanakarwade <[email protected]>
… feat/separate-function-createwallet-createdid
Signed-off-by: bhavanakarwade <[email protected]>
… feat/separate-function-createwallet-createdid
… feat/separate-function-createwallet-createdid
Signed-off-by: bhavanakarwade <[email protected]>
Signed-off-by: bhavanakarwade <[email protected]>
Signed-off-by: bhavanakarwade <[email protected]>
Signed-off-by: bhavanakarwade <[email protected]>
Copy link

sonarqubecloud bot commented Mar 4, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
5.4% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

@tipusinghaw tipusinghaw deleted the feat/separate-function-createwallet-createdid branch March 27, 2024 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants