Git Product home page Git Product logo

Comments (1)

loneil avatar loneil commented on June 12, 2024

From @usingtechnology on JIRA

A connection to endorser does not require a public DID and there are use cases for public DID without need for endorser, so these should be discrete functions.

Expect that there are configurations/values for:

endorser public DID
endorser Alias
Tenant will call didexchange/create-request. Then end result should be both sides of the connection have endorser metadata added Marking one side as an endorser and one side as an author. The innkeeper plugin will do the author side, the endorser service will do the endorser side.

example
their_public_did = configured endorser public DID
alias = configured endorser alias
my_label = the author's agent/wallet name (optional)

curl -X 'POST' \
  'http://localhost:8032/didexchange/create-request?their_public_did=SVfHGCEEvEFmpBPcxgNqRR&alias=endorser&my_label=abcd123' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ3YWxsZXRfaWQiOiI1MGY5NmI2MS00MzE5LTQ1ZTgtOGVlYS03MmI4NGQ4MWRjYmIiLCJpYXQiOjE2NzM2NDA5MTcsImV4cCI6MTY3MzcyNzMxN30.LSmonQOh-oaQP9lxPwqSRGqmto2fLfLOaYn4OwJriIs' \
  -d ''
{
  "connection_id": "15ce5a4c-da3c-4379-8f41-05d611d6c949",
  "invitation_mode": "once",
  "updated_at": "2023-01-13T20:18:07.895610Z",
  "their_did": "SVfHGCEEvEFmpBPcxgNqRR",
  "rfc23_state": "request-sent",
  "accept": "manual",
  "created_at": "2023-01-13T20:18:07.883714Z",
  "their_role": "inviter",
  "alias": "endorser",
  "routing_state": "none",
  "connection_protocol": "didexchange/1.0",
  "state": "request",
  "their_public_did": "SVfHGCEEvEFmpBPcxgNqRR",
  "my_did": "27Tvs9tbWddNeZaw7Jh2tF",
  "request_id": "cb0669d6-c496-494b-a64e-40e6842e4119"
}

from traction.

Related Issues (20)

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.