Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the numerical error codes to be in sync with the VCDM specification #327

Merged
merged 5 commits into from
Jan 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 6 additions & 10 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2366,7 +2366,7 @@ <h3>Processing Errors</h3>
The algorithms described in this specification, as well as in various cryptographic
suite specifications, throw specific types of errors. Implementers might find
it useful to convey these errors to other libraries or software systems. This
section provides specific URLs, descriptions, and error codes for the errors,
section provides specific URLs and descriptions for the errors,
such that an ecosystem implementing technologies described by this
specification might interoperate more effectively when errors occur.
</p>
Expand All @@ -2384,10 +2384,6 @@ <h3>Processing Errors</h3>
below.
</li>
<li>
The `code` value MUST be the integer code described in the table below
(in parentheses, beside the type name).
</li>
<li>
The `title` value SHOULD provide a short but specific human-readable [=string=] for
the error.
</li>
Expand All @@ -2397,25 +2393,25 @@ <h3>Processing Errors</h3>
</ul>

<dl>
<dt id="PROOF_GENERATION_ERROR">PROOF_GENERATION_ERROR (-16)</dt>
<dt id="PROOF_GENERATION_ERROR">PROOF_GENERATION_ERROR</dt>
<dd>
A request to generate a proof failed. See Section [[[#add-proof]]], and Section
[[[#add-proof-set-chain]]].
</dd>
<dt id="PROOF_VERIFICATION_ERROR">PROOF_VERIFICATION_ERROR (-17)</dt>
<dt id="PROOF_VERIFICATION_ERROR">PROOF_VERIFICATION_ERROR</dt>
<dd>
An error was encountered during proof verification. See Section [[[#verify-proof]]].
</dd>
<dt id="PROOF_TRANSFORMATION_ERROR">PROOF_TRANSFORMATION_ERROR (-18)</dt>
<dt id="PROOF_TRANSFORMATION_ERROR">PROOF_TRANSFORMATION_ERROR </dt>
<dd>
An error was encountered during the transformation process.
</dd>
<dt id="INVALID_DOMAIN_ERROR">INVALID_DOMAIN_ERROR (-19)</dt>
<dt id="INVALID_DOMAIN_ERROR">INVALID_DOMAIN_ERROR</dt>
<dd>
The `domain` value in a proof did not match the expected value. See Section
[[[#verify-proof]]].
</dd>
<dt id="INVALID_CHALLENGE_ERROR">INVALID_CHALLENGE_ERROR (-20)</dt>
<dt id="INVALID_CHALLENGE_ERROR">INVALID_CHALLENGE_ERROR</dt>
<dd>
The `challenge` value in a proof did not match the expected value. See Section
[[[#verify-proof]]].
Expand Down
36 changes: 18 additions & 18 deletions vocab/security/vocabulary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -481,62 +481,62 @@ property:
individual:
- id: PROOF_GENERATION_ERROR
type: sec:ProcessingError
label: Proof generation error (-16)
label: Proof generation error
defined_by: https://www.w3.org/TR/vc-data-integrity/#PROOF_GENERATION_ERROR
context: none

- id: PROOF_VERIFICATION_ERROR
type: sec:ProcessingError
label: Malformed proof (-17)
label: Malformed proof
defined_by: https://www.w3.org/TR/vc-data-integrity/#PROOF_VERIFICATION_ERROR
context: none

- id: PROOF_TRANSFORMATION_ERROR
type: sec:ProcessingError
label: Mismatched proof purpose (-18)
label: Mismatched proof purpose
defined_by: https://www.w3.org/TR/vc-data-integrity/#PROOF_TRANSFORMATION_ERROR
context: none

- id: INVALID_DOMAIN_ERROR
type: sec:ProcessingError
label: Invalid proof domain (-19)
label: Invalid proof domain
defined_by: https://www.w3.org/TR/vc-data-integrity/#INVALID_DOMAIN_ERROR
context: none

- id: INVALID_CHALLENGE_ERROR
type: sec:ProcessingError
label: Invalid challenge (-20)
label: Invalid challenge
defined_by: https://www.w3.org/TR/vc-data-integrity/#INVALID_CHALLENGE_ERROR
context: none

- id: INVALID_VERIFICATION_METHOD_URL
type: sec:ProcessingError
label: Invalid verification method URL (-21)
defined_by: https://www.w3.org/TR/vc-data-integrity/#INVALID_VERIFICATION_METHOD_URL
label: Invalid verification method URL
defined_by: https://www.w3.org/TR/cid-1.0/#INVALID_VERIFICATION_METHOD_URL
context: none

- id: INVALID_CONTROLLER_DOCUMENT_ID
- id: INVALID_CONTROLLED_IDENTIFIER_DOCUMENT_ID
type: sec:ProcessingError
label: Invalid controller document id (-22)
defined_by: https://www.w3.org/TR/vc-data-integrity/#INVALID_CONTROLLER_DOCUMENT_ID
label: Invalid controlled identifier document id
defined_by: https://www.w3.org/TR/cid-1.0/#INVALID_CONTROLLED_IDENTIFIER_DOCUMENT_ID
context: none

- id: INVALID_CONTROLLER_DOCUMENT
- id: INVALID_CONTROLLED_IDENTIFIER_DOCUMENT
type: sec:ProcessingError
label: Invalid controller document (-23)
defined_by: https://www.w3.org/TR/vc-data-integrity/#INVALID_CONTROLLER_DOCUMENT
label: Invalid controlled identifier document
defined_by: https://www.w3.org/TR/cid-1.0/#INVALID_CONTROLLED_IDENTIFIER_DOCUMENT
context: none

- id: INVALID_VERIFICATION_METHOD
type: sec:ProcessingError
label: Invalid verification method (-24)
defined_by: https://www.w3.org/TR/vc-data-integrity/#INVALID_VERIFICATION_METHOD
label: Invalid verification method
defined_by: https://www.w3.org/TR/cid-1.0/#INVALID_VERIFICATION_METHOD
context: none

- id: INVALID_PROOF_PURPOSE_FOR_VERIFICATION_METHOD
- id: INVALID_RELATIONSHIP_FOR_VERIFICATION_METHOD
type: sec:ProcessingError
label: Invalid proof purpose for verification method (-25)
defined_by: https://www.w3.org/TR/vc-data-integrity/#INVALID_PROOF_PURPOSE_FOR_VERIFICATION_METHOD
label: Invalid relationship for verification method
defined_by: https://www.w3.org/TR/cid-1.0/#INVALID_RELATIONSHIP_FOR_VERIFICATION_METHOD
context: none

datatype:
Expand Down
Loading