Skip to content

Commit

Permalink
Clarify how to create a canonicalDocument in each algorithm.
Browse files Browse the repository at this point in the history
  • Loading branch information
msporny committed Jun 21, 2024
1 parent 369f0f0 commit fcf0ba0
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -636,9 +636,11 @@ <h4>Transformation (eddsa-rdfc-2022)</h4>
raised.
</li>
<li>
Let <var>canonicalDocument</var> be the result of applying the
Universal RDF Dataset Canonicalization Algorithm
[[RDF-CANON]] to the <var>unsecuredDocument</var>.
Let |canonicalDocument| be the result of converting |unsecuredDocument|
<a data-cite="JSON-LD11-API#deserialize-json-ld-to-rdf-algorithm">
to RDF statements</a>, applying the Universal RDF Dataset Canonicalization
Algorithm [[RDF-CANON]] to the result, and then serializing the result to
[[N-QUADS]].
</li>
<li>
Return <var>canonicalDocument</var> as the <em>transformed data document</em>.
Expand Down Expand Up @@ -1009,7 +1011,8 @@ <h4>Transformation (eddsa-jcs-2022)</h4>
</li>
<li>
Let <var>canonicalDocument</var> be the result of applying the
JSON Canonicalization Scheme [[RFC8785]] to the <var>unsecuredDocument</var>.
JSON Canonicalization Scheme [[RFC8785]] to a JSON serialization of the
<var>unsecuredDocument</var>.
</li>
<li>
Return <var>canonicalDocument</var> as the <em>transformed data document</em>.
Expand Down Expand Up @@ -2018,12 +2021,11 @@ <h4>Transformation (Ed25519Signature2020)</h4>
`Ed25519Signature2020`, then a `PROOF_TRANSFORMATION_ERROR` MUST be raised.
</li>
<li>
Let <var>canonicalDocument</var> be the result of applying the
Universal RDF Dataset Canonicalization Algorithm
[[RDF-CANON]] to the <var>unsecuredDocument</var>.
</li>
<li>
Set <var>output</var> to the value of <var>canonicalDocument</var>.
Let |canonicalDocument| be the result of converting |unsecuredDocument|
<a data-cite="JSON-LD11-API#deserialize-json-ld-to-rdf-algorithm">
to RDF statements</a>, applying the Universal RDF Dataset Canonicalization
Algorithm [[RDF-CANON]] to the result, and then serializing the result to
[[N-QUADS]].
</li>
<li>
Return <var>canonicalDocument</var> as the <em>transformed data document</em>.
Expand Down

0 comments on commit fcf0ba0

Please sign in to comment.