diff --git a/index.html b/index.html index b6de790..e8b6ede 100644 --- a/index.html +++ b/index.html @@ -518,14 +518,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|).

@@ -534,24 +534,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:
    1. -Set |cryptosuite|.|transform| to the algorithm in Section -. -
    2. -
    3. -Set |cryptosuite|.|hash| to the algorithm in Section -. -
    4. -
    5. -Set |cryptosuite|.|createProofConfig| to the algorithm in Section -. -
    6. -
    7. -Set |cryptosuite|.|serializeProof| to the algorithm in Section -. +Set |cryptosuite|.|createProof| to the algorithm in Section +.
    8. Set |cryptosuite|.|verifyProof| to the algorithm in Section @@ -560,24 +551,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:
    1. -Set |cryptosuite|.|transform| to the algorithm in Section -. -
    2. -
    3. -Set |cryptosuite|.|hash| to the algorithm in Section -. -
    4. -
    5. -Set |cryptosuite|.|createProofConfig| to the algorithm in Section -. -
    6. -
    7. -Set |cryptosuite|.|serializeProof| to the algorithm in Section -. +Set |cryptosuite|.|createProof| to the algorithm in Section +.
    8. Set |cryptosuite|.|verifyProof| to the algorithm in Section @@ -586,28 +564,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:
    1. -Set |cryptosuite|.|transform| to the algorithm in Section -. -
    2. -
    3. -Set |cryptosuite|.|hash| to the algorithm in Section -. -
    4. -
    5. -Set |cryptosuite|.|createProofConfig| to the algorithm in Section -. -
    6. -
    7. -Set |cryptosuite|.|serializeProof| to the algorithm in Section -. -
    8. -
    9. -Set |cryptosuite|.|deriveProof| to the algorithm in Section -. +Set |cryptosuite|.|createProof| to the algorithm in Section +.
    10. Set |cryptosuite|.|verifyProof| to the algorithm in Section @@ -979,7 +940,7 @@

      ecdsa-jcs-2019

      -

      Add Proof (ecdsa-jcs-2019)

      +

      Create Proof (ecdsa-jcs-2019)

      To generate a proof, the algorithm in @@ -2554,7 +2515,7 @@

      ecdsa-sd-2023

      -

      Add Base Proof (ecdsa-sd-2023)

      +

      Create Base Proof (ecdsa-sd-2023)

      To generate a base proof, the algorithm in