From 69b6b4591b689f41c8005f3029154a9758a08f66 Mon Sep 17 00:00:00 2001
From: Manu Sporny
Date: Fri, 16 Feb 2024 19:00:30 -0500
Subject: [PATCH] Update Instantiate Cryptosuite algorithm.
---
index.html | 77 ++++++++++++++----------------------------------------
1 file changed, 19 insertions(+), 58 deletions(-)
diff --git a/index.html b/index.html
index 4bc2c85..5da49fc 100644
--- a/index.html
+++ b/index.html
@@ -523,14 +523,14 @@ Algorithms
- Suite Selection Algorithm
+ Instantiate Cryptosuite
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 @@ Suite Selection Algorithm
Initialize |cryptosuite| to an empty [=struct=].
-If |options|.|type| is `DataIntegrityProof` and |options|.|cryptosuite| is
-`ecdsa-rdfc-2019` then:
+If |options|.|type| does not equal `DataIntegrityProof`, an
+`INVALID_PROOF_CONFIGURATION` error MUST be raised.
+
+
+If |options|.|cryptosuite| is `ecdsa-rdfc-2019` then:
-
-Set |cryptosuite|.|transform| to the algorithm in Section
-.
-
- -
-Set |cryptosuite|.|hash| to the algorithm in Section
-.
-
- -
-Set |cryptosuite|.|createProofConfig| to the algorithm in Section
-.
-
- -
-Set |cryptosuite|.|serializeProof| to the algorithm in Section
-.
+Set |cryptosuite|.|createProof| to the algorithm in Section
+.
-
Set |cryptosuite|.|verifyProof| to the algorithm in Section
@@ -565,24 +556,11 @@
Suite Selection Algorithm
-If |options|.|type| is `DataIntegrityProof` and |options|.|cryptosuite| is
-`ecdsa-jcs-2019` then:
+If |options|.|cryptosuite| is `ecdsa-jcs-2019` then:
-
-Set |cryptosuite|.|transform| to the algorithm in Section
-.
-
- -
-Set |cryptosuite|.|hash| to the algorithm in Section
-.
-
- -
-Set |cryptosuite|.|createProofConfig| to the algorithm in Section
-.
-
- -
-Set |cryptosuite|.|serializeProof| to the algorithm in Section
-.
+Set |cryptosuite|.|createProof| to the algorithm in Section
+.
-
Set |cryptosuite|.|verifyProof| to the algorithm in Section
@@ -591,28 +569,11 @@
Suite Selection Algorithm
-If |options|.|type| is `DataIntegrityProof` and |options|.|cryptosuite| is
-`ecdsa-sd-2023` then:
+If |options|.|cryptosuite| is `ecdsa-sd-2023` then:
-
-Set |cryptosuite|.|transform| to the algorithm in Section
-.
-
- -
-Set |cryptosuite|.|hash| to the algorithm in Section
-.
-
- -
-Set |cryptosuite|.|createProofConfig| to the algorithm in Section
-.
-
- -
-Set |cryptosuite|.|serializeProof| to the algorithm in Section
-.
-
- -
-Set |cryptosuite|.|deriveProof| to the algorithm in Section
-.
+Set |cryptosuite|.|createProof| to the algorithm in Section
+.
-
Set |cryptosuite|.|verifyProof| to the algorithm in Section
@@ -984,7 +945,7 @@
ecdsa-jcs-2019
- Add Proof (ecdsa-jcs-2019)
+ Create Proof (ecdsa-jcs-2019)
To generate a proof, the algorithm in
@@ -2559,7 +2520,7 @@
ecdsa-sd-2023
- Add Base Proof (ecdsa-sd-2023)
+ Create Base Proof (ecdsa-sd-2023)
To generate a base proof, the algorithm in