diff --git a/index.html b/index.html index 2e1f3df..3e9a16c 100644 --- a/index.html +++ b/index.html @@ -700,50 +700,33 @@

Proof Configuration (eddsa-rdfc-2022)

identifier (cryptosuite). A proof configuration object is produced as output.

-
  1. -Let proofConfig be an empty object. -
  2. -
  3. -Set proofConfig.type to -options.type. -
  4. -
  5. -If options.cryptosuite is set, -set proofConfig.cryptosuite to its value. +Let |proofConfig| be a clone of the |options| object.
  6. -If options.type is not set to `DataIntegrityProof` and/or -proofConfig.cryptosuite is not set to `eddsa-rdfc-2022`, -an error MUST be raised that SHOULD convey an error type of +If |proofConfig|.|type| is not set to `DataIntegrityProof` and/or +|proofConfig|.|cryptosuite| is not set to `eddsa-rdfc-2022`, an +error MUST be raised and SHOULD convey an error type of PROOF_GENERATION_ERROR.
  7. -Set proofConfig.created to -options.created. If the value is not a valid -[[XMLSCHEMA11-2]] datetime, -an error MUST be raised that SHOULD convey an error type of +If |proofConfig|.|created| is present and set to a value that is not a +valid [[XMLSCHEMA11-2]] datetime, an error MUST be +raised and SHOULD convey an error type of PROOF_GENERATION_ERROR.
  8. -Set proofConfig.verificationMethod to -options.verificationMethod. -
  9. -
  10. -Set proofConfig.proofPurpose to -options.proofPurpose. -
  11. -
  12. -Set proofConfig.@context to -unsecuredDocument.@context +Set |proofConfig|.@context to +|unsecuredDocument|.@context.
  13. -Let canonicalProofConfig be the result of applying the -RDF Dataset Canonicalization algorithm [[RDF-CANON]] to the proofConfig. +Let |canonicalProofConfig| be the result of applying the +RDF Dataset Canonicalization Algorithm +[[RDF-CANON]] to the |proofConfig|.
  14. -Return canonicalProofConfig. +Return |canonicalProofConfig|.
@@ -1080,27 +1063,18 @@

Proof Configuration (eddsa-jcs-2022)

Let proofConfig be a clone of the options object.
  • -If options.type is not set to `DataIntegrityProof` and +If proofConfig.type is not set to `DataIntegrityProof` or proofConfig.cryptosuite is not set to `eddsa-jcs-2022`, an error MUST be raised that SHOULD convey an error type of PROOF_GENERATION_ERROR.
  • -Set proofConfig.created to -options.created. If the value is not a valid -[[XMLSCHEMA11-2]] datetime, -an error MUST be raised that SHOULD convey an error type of +If |proofConfig|.|created| is set to a value that is not a +valid [[XMLSCHEMA11-2]] datetime, an error MUST be +raised and SHOULD convey an error type of PROOF_GENERATION_ERROR.
  • -Set proofConfig.verificationMethod to -options.verificationMethod. -
  • -
  • -Set proofConfig.proofPurpose to -options.proofPurpose. -
  • -
  • Let canonicalProofConfig be the result of applying the JSON Canonicalization Scheme [[RFC8785]] to the proofConfig.
  • @@ -2112,37 +2086,20 @@

    Proof Configuration (Ed25519Signature2020)

    1. -Let proofConfig be an empty object. -
    2. -
    3. -Set proofConfig.type to -options.type. +Let |proofConfig| be a clone of the |options| object.
    4. -If options.cryptosuite is set, -set proofConfig.cryptosuite to its value. -
    5. -
    6. -If options.type is not set to `Ed25519Signature2020`, -an error MUST be raised that SHOULD convey an error type of +If proofConfig.type is not set to `Ed25519Signature2020`, +an error MUST be raised and SHOULD convey an error type of PROOF_GENERATION_ERROR.
    7. -Set proofConfig.created to -options.created. If the value is not a valid -[[XMLSCHEMA11-2]] datetime, -an error MUST be raised that SHOULD convey an error type of +If |proofConfig|.|created| is present and set to a value that is not a +valid [[XMLSCHEMA11-2]] datetime, an error MUST be +raised and SHOULD convey an error type of PROOF_GENERATION_ERROR.
    8. -Set proofConfig.verificationMethod to -options.verificationMethod. -
    9. -
    10. -Set proofConfig.proofPurpose to -options.proofPurpose. -
    11. -
    12. Set proofConfig.@context to unsecuredDocument.@context