digitalbazaar / did-io

Decentralized identifier management library for browser and node.js
Other
43 stars 8 forks source link

Support unregistered/pairwise DID use case #29

Closed dmitrizagidulin closed 6 years ago

dmitrizagidulin commented 6 years ago

Since there's no way to tell if a DID is registered or unregistered/pairwise (and this is by design), the resolution logic should be:

  1. do a GET to the ledger, check if it exists
  2. If doesn't exist (specifically a 404 error), then check local didStore to see if it's there, and return.
  3. If the DID also does not exist in local did store, then re-throw the 404 error