From 30a82a712b8de447381dfbd01938374af4828836 Mon Sep 17 00:00:00 2001 From: Manu Sporny <msporny@digitalbazaar.com> Date: Sun, 9 Jun 2024 16:44:45 -0400 Subject: [PATCH] Align proof set/chain verification to align w/ VCDM return value. Co-authored-by: wes-smith <wes.apps.2014@gmail.com> --- index.html | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/index.html b/index.html index 0ee2e9b..b88c837 100644 --- a/index.html +++ b/index.html @@ -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> @@ -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>