From f61e06be2f0925c2dff66dd4c90e10e97867a5ba Mon Sep 17 00:00:00 2001
From: Manu Sporny Algorithms
by default, and abort processing upon detection.
+This algorithm is used to configure a cryptographic suite to be used by the +Add Proof and +Verify Proof +functions in [[[VC-DATA-INTEGRITY]]]. The algorithm takes an options object +([=map=] |options|) as input and returns a cryptosuite +([=struct=] |cryptosuite|). +
+ ++The following algorithm specifies how to create a [=data integrity proof=] given +an unsecured data document. Required inputs are an +unsecured data document ([=map=] |unsecuredDocument|), and a set of +proof options ([=map=] |options|). A [=data integrity proof=] ([=map=]), +or an error, is produced as output. +
+ +-To generate a proof, the algorithm in - -Section 4.1: Add Proof in the Data Integrity -[[VC-DATA-INTEGRITY]] specification MUST be executed. -
-To verify a proof, the algorithm in - -Section 4.2: Verify Proof in the Data Integrity -[[VC-DATA-INTEGRITY]] specification MUST be executed. +The following algorithm specifies how to verify a [=data integrity proof=] given +an secured data document. Required inputs are an +secured data document ([=map=] |securedDocument|). This algorithm returns +a verification result, which is a [=struct=] whose +[=struct/items=] are:
+This algorithm is used to configure a cryptographic suite to be used by the -Add Proof and -Verify Proof +Add Proof and +Verify Proof functions in [[[VC-DATA-INTEGRITY]]]. The algorithm takes an options object -([=map=] |options|) as input and returns a cryptosuite +([=map=] |options|) as input and returns a [=cryptosuite instance=] ([=struct=] |cryptosuite|).
@@ -539,24 +539,15 @@To generate a proof, the algorithm in @@ -2559,7 +2520,7 @@
To generate a base proof, the algorithm in
From 94fd162d898731d53c45be28cee7b986559930d6 Mon Sep 17 00:00:00 2001
From: Manu Sporny Instantiate Cryptosuite
Add Proof and
Verify Proof
functions in [[[VC-DATA-INTEGRITY]]]. The algorithm takes an options object
-([=map=] |options|) as input and returns a [=cryptosuite instance=]
-([=struct=] |cryptosuite|).
+([=map=] |options|) as input and returns a [=data integrity cryptographic suite
+instance|cryptosuite instance=] ([=struct=] |cryptosuite|).
+
The following algorithm specifies how to create a [=data integrity proof=] given an unsecured data document. Required inputs are an -unsecured data document ([=map=] |unsecuredDocument|), and a set of -proof options ([=map=] |options|). A [=data integrity proof=] ([=map=]), -or an error, is produced as output. -
+unsecured data document ([=map=] |unsecuredDocument|), and a set of proof +options ([=map=] |options|). A [=data integrity proof=] ([=map=]), or an error, +is produced as output. + -The following algorithm specifies how to verify a [=data integrity proof=] given an secured data document. Required inputs are an @@ -943,12 +942,47 @@
-To generate a proof, the algorithm in - -Section 4.1: Add Proof of the Data Integrity -[[VC-DATA-INTEGRITY]] specification MUST be executed. +The following algorithm specifies how to create a [=data integrity proof=] given +an unsecured data document. Required inputs are an +unsecured data document ([=map=] |unsecuredDocument|), and a set of proof +options ([=map=] |options|). A [=data integrity proof=] ([=map=]), or an error, +is produced as output.
+ +-To generate a base proof, the algorithm in - -Section 4.1: Add Proof in the Data Integrity -[[VC-DATA-INTEGRITY]] specification MUST be executed. +The following algorithm specifies how to create a [=data integrity proof=] given +an unsecured data document. Required inputs are an +unsecured data document ([=map=] |unsecuredDocument|), and a set of proof +options ([=map=] |options|). A [=data integrity proof=] ([=map=]), or an error, +is produced as output.
+ +-To verify a proof, the algorithm in - -Section 4.2: Verify Proof of the Data Integrity -[[VC-DATA-INTEGRITY]] specification MUST be executed. +The following algorithm specifies how to verify a [=data integrity proof=] given +an secured data document. Required inputs are an +secured data document ([=map=] |securedDocument|). This algorithm returns +a [=verification result=]:
+ +