Skip to content

Commit

Permalink
Align proof set/chain verification to align w/ VCDM return value.
Browse files Browse the repository at this point in the history
Co-authored-by: wes-smith <wes.apps.2014@gmail.com>
  • Loading branch information
msporny and wes-smith committed Jun 9, 2024
1 parent 286a934 commit 30a82a7
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3427,8 +3427,11 @@ <h3>Verify Proof Sets and Chains</h3>
</ol>
</li>
<li>
Let |combinedVerificationResult| be an empty struct. Set |combinedVerificationResult|.|verified|
to `true`, |combinedVerificationResult|.|verifiedDocument| to `null`, and
Set |successfulVerificationResults| to an empty list.
</li>
<li>
Let |combinedVerificationResult| be an empty struct. Set |combinedVerificationResult|.|status|
to `true`, |combinedVerificationResult|.|document| to `null`, and
|combinedVerificationResult|.|mediaType| to `null`.
</li>
<li>
Expand All @@ -3439,19 +3442,20 @@ <h3>Verify Proof Sets and Chains</h3>
to `false`.
</li>
<li>
Otherwise, set |combinedVerificationResult|.|verifiedDocument| to
|cryptosuiteVerificationResult|.|verifiedDocument|, and set
|combinedVerificationResult|.|mediaType| to |cryptosuiteVerificationResult|.|mediaType|.
Otherwise, set |combinedVerificationResult|.|document| to
|cryptosuiteVerificationResult|.|verifiedDocument|, set
|combinedVerificationResult|.|mediaType| to |cryptosuiteVerificationResult|.|mediaType|, and
append |cryptosuiteVerificationResult| to |successfulVerificationResults|.
</li>
</ol>
</li>
<li>
If |combinedVerificationResult|.|verified| is `false`, set
|combinedVerificationResult|.|verifiedDocument| to `null` and
If |combinedVerificationResult|.|status| is `false`, set
|combinedVerificationResult|.|document| to `null` and
|combinedVerificationResult|.|mediaType| to `null`.
</li>
<li>
Return |combinedVerificationResult|.
Return |combinedVerificationResult|, |successfulVerificationResults|.
</li>
</ol>
</section>
Expand Down

0 comments on commit 30a82a7

Please sign in to comment.