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

Add details to results of the dereferencing algorithm. #103

Open
wants to merge 3 commits into
base: gh-pages
Choose a base branch
from
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1016,22 +1016,36 @@ <h2>Dereferencing the Resource</h2>
<li><b>contentStream</b>: <code>null</code></li>
<li><b>contentMetadata</b>: <code>«[ ]»</code></li>
</ol>
</li>

<li>Obtain the <a>DID document</a> for the <var>input <a>DID</a></var> by executing the
<a>DID resolution</a> algorithm as defined in <a href="#resolving"></a>. All
<a href="https://www.w3.org/TR/did-core/#did-parameters">
DID parameters</a> of the <var>input <a>DID URL</a></var> MUST be passed as <var>resolution options</var> to the
<a>DID Resolution</a> algorithm. If the <var>input <a>DID</a></var> does not exist, return a null result.
Otherwise, the result is called the <var>resolved <a>DID document</a></var>.</li>
<a>DID Resolution</a> algorithm. If the <var>input <a>DID</a></var> does not exist, the <a>DID URL dereferencer</a>
peacekeeper marked this conversation as resolved.
Show resolved Hide resolved
MUST return the following result:

<ol class="algorithm">
<li><b>dereferencingMetadata</b>: <code>«[ "error" → "notFound" ]»</code></li>
<li><b>contentStream</b>: <code>null</code></li>
<li><b>contentMetadata</b>: <code>«[ ]»</code></li>
</ol>

Otherwise, the result is called the <var>resolved <a>DID document</a></var>.
</li>

<li>If present, separate the <a>DID fragment</a> from the <var>input <a>DID URL</a></var> and continue
with the adjusted <var>input <a>DID URL</a></var>.</li>

<li>If the <var>input <a>DID URL</a></var> contains no <a>DID path</a> and no <a>DID query</a>:
<pre class="example nohighlight">did:example:1234</pre>
The <a>DID URL dereferencer</a> MUST return the <var>resolved <a>DID document</a></var> and
<var>resolved <a href="#did-document-metadata"></a></var> as follows:

<ol class="algorithm">
<li>Return the <var>resolved <a>DID document</a></var>.</li>
<li><b>dereferencingMetadata</b>: <code>«[ derefencingMetadata ]»</code></li>
<li><b>contentStream</b>: <code>resolved didDocumentStream</code></li>
<li><b>contentMetadata</b>: <code>«[ resolved didDocumentMetadata ]»</code></li>
</ol>
</li>

Expand Down
Loading