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

Deferred Identity Creation #2

Open
6 tasks
chinmoy12c opened this issue Dec 23, 2022 · 0 comments
Open
6 tasks

Deferred Identity Creation #2

chinmoy12c opened this issue Dec 23, 2022 · 0 comments
Assignees

Comments

@chinmoy12c
Copy link
Contributor

chinmoy12c commented Dec 23, 2022

Description

Create an endpoint that would accept a time and DID content and would create that DID in the future at that particular time.

Steps

  • Create an endpoint to accept DID content and Time as a Timestamp.
  • Figure out how the service would keep track of which documents to create at what time. (Cron?)
    • Do we create it upfront and only make it accessible later after the generation time? Or do we generate it later at generation time?
  • Provide an endpoint to update the provided time.
    • If the service does not keep track of the user, how will it determine which data to update?
  • Create an endpoint to cancel the DID generation.

Endpoints

Generation

POST /did/generate

BODY


{
    content: {
        "service": [
          {
            "id": "#IdentityHub",
            "type": "IdentityHub",
            "serviceEndpoint": {
              "@context": "schema.identity.foundation/hub",
              "@type": "UserServiceEndpoint",
              "instance": [
                "did:test:hub.id"
              ]
            }
          }
      ]
    },
   generationTime: 1671812448
}

Updation

WIP

Cancel Generation

WIP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant