Giter VIP home page Giter VIP logo

jff-didcomm-issuance's Introduction

JFF Plugfest #2 - DIDComm Issuance

This is the flow for issuance of an Open Badge v3 Verifiable Credential (VC) for the Jobs for the Future (JFF) plugfest #2 that focuses on the issuance of VCs.

The sequence has been taken from the WACI-DIDComm Interop Profile

sequenceDiagram
issuer->>holder: https://didcomm.org/out-of-band/2.0/invitation
holder->>issuer: https://didcomm.org/issue-credential/3.0/propose-credential
issuer->>holder: https://didcomm.org/issue-credential/3.0/offer-credential
holder->>issuer: https://didcomm.org/issue-credential/3.0/request-credential
issuer->>holder: https://didcomm.org/issue-credential/3.0/issue-credential
holder->>issuer: https://didcomm.org/issue-credential/3.0/ack
Loading

jff-didcomm-issuance's People

Contributors

brianorwhatever avatar

Stargazers

Lance avatar

Watchers

Lance avatar

jff-didcomm-issuance's Issues

What does your offer credential contain?

What we need to work out here are commonalities and where do we need to adjust according to the spec of JFF. Meaning that we find a shared JSON structure inside the attachement or where do we put the layer

did:peer can't comply with didcommv2

The service property of did:peer doesn't align with what is required from didcomm v2.. If we go the did:peer approach we will either have to misalign with didcomm or did:peer

What does your request credential contain?

What we need to work out here are commonalities and where do we need to adjust according to the spec of JFF. Meaning that we find a shared JSON structure inside the attachement or where do we put the layer

We also have to understand what does the attachement here offer of functionality

NON ARIES - What does your OOB invitation contain?

Here we are using the service endpoint discovery method. This can change because of the did:peer things.
We also use goal and accept to adress what is what

{
  "id": "62c5666fbfecac42e632d703",
  "to": [
    "did:key:z6MkeXQbsmxZYtpZ5PKgib56E5rqvFRHNqg5YoQ11zrwsksJ"
  ],
  "typ": "application/didcomm-plain+json",
  "from": "did:key:z6MkkgfrEB9gSvpJui6yLmqHhcuuLjto9QXKCSa4WtHai4KR",
  "thid": "f62e3124-3113-4147-8203-b7f899699ef3",
  "attachments": [],
  "type": "https://didcomm.org/out-of-band/2.0/invitation",
  "body": {
    "goal": "Issue VC",
    "goal_code": "issue_vc",
    "accept": [
      "didcomm/v2"
    ],
    "service": {
      "id": "did:key:z6MkkgfrEB9gSvpJui6yLmqHhcuuLjto9QXKCSa4WtHai4KR#did-communication",
      "type": "DIDCommMessaging",
      "serviceEndpoint": "https://dev-open-messages-api-lth4gowdyq-ew.a.run.app/messages",
      "priority": 0
    }
  }
}

We also use an accept message to accept the invitation, but that can be ignored

OOB accept
{
  "id": "62c56c090fba490019b4de9d",
  "to": [
    "did:key:z6MkkgfrEB9gSvpJui6yLmqHhcuuLjto9QXKCSa4WtHai4KR"
  ],
  "typ": "application/didcomm-plain+json",
  "from": "did:key:z6MkeXQbsmxZYtpZ5PKgib56E5rqvFRHNqg5YoQ11zrwsksJ",
  "thid": "f62e3124-3113-4147-8203-b7f899699ef3",
  "attachments": [],
  "type": "https://didcomm.org/out-of-band/2.0/accept",
  "body": {
    "goal": "Issue VC",
    "goal_code": "issue_vc",
    "accept": [
      "didcomm/v2"
    ],
    "service": {
      "id": "did:key:z6MkeXQbsmxZYtpZ5PKgib56E5rqvFRHNqg5YoQ11zrwsksJ#did-communication",
      "type": "DIDCommMessaging",
      "serviceEndpoint": "https://dev-open-messages-api-lth4gowdyq-ew.a.run.app/messages",
      "priority": 0
    }
  }
}

How will DID Auth work?

Proposal:

In the offer-credential message the dif/credential-manifest/[email protected] attachment contains a presentation_definition within the credential_manifest, describing the proof challenge and proof domain for a DID Authentication VP.

The following request-credential message has a dif/credential-manifest/[email protected] attachment that is a VP which includes the previously mentioned challenge and domain in it's proof.

How is your flow?

Please make a simple swimlane work like Brian have and add it here, so we can map things out.

Here is Diwala flow.

Screenshot 2022-10-14 at 15 57 58

Screenshot 2022-10-14 at 15 58 09

@brianorwhatever can you add yours here as well? So we have a simple issue to scroll and compare on. Just felt easier than doing a PR

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.