trustbloc / adapter

Integration components to reduce complexity for RPs and Issuers
Apache License 2.0
8 stars 13 forks source link

[Issuer - Blinded Routing] Fetch PeerDIDDoc #340

Closed rolsonquadras closed 4 years ago

rolsonquadras commented 4 years ago

Part of #339

rolsonquadras commented 4 years ago

Request:

{
   "@id":"1fadd228-5088-44d4-9c47-ba1b06899a14",
   "@type":"https://trustbloc.github.io/blinded-routing/1.0/diddoc-req"
}

Response:

{
   "@id":"6565d243-4cfa-4a58-8c5c-7f4d1f0e9a4f",
   "@type":"https://trustbloc.github.io/blinded-routing/1.0/diddoc-resp",
   "data":{
      "errorMsg":"<inCaseOfFailure>",
      "didDoc":{
         <didDoc>
      }
   }
}