-
Notifications
You must be signed in to change notification settings - Fork 9
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
Unify Error Handling Language #63
Comments
Recommendation: Add INVALID_PROOF_CONFIGURATION, INVALID_PROOF_DATETIME, PROOF_TRANSFORMATION_ERROR, and MALFORMED_PROOF_ERROR to the VC-DI spec as the first three are are used in multiple cryptosuite specs and I propose that we use the MALFORMED_PROOF_ERROR for many ECDSA-SD errors and BBS errors. See below for details. Error Codes Used but Not in DI Spec
Errors without Codes Suggested Assignments
The rest of these errors could be grouped under the general category of a MALFORMED_PROOF_ERROR:
|
PRs w3c/vc-data-integrity#274 and #64 have been merged to address this issue, closing. |
To unify error handling language across this specification (and if desired other cryptosuite specifications) I'd recommend:
Below I show codes used but not in the DI specification and error conditions without codes. Thoughts/Opinions?
Error Codes Used but Not in DI Spec
Errors without Codes
These seemed to me to need codes and rigorous handling. Line numbers are approximate. Need to assign to existing error codes or come up with new codes.
u
, indicating that it is a multibase-base64url-no-pad-encoded value, throwing an error ";u
, indicating that it is a multibase-base64url-no-pad-encoded value, throwing an error if it does not."0xd9
,0x5d
, and0x01
, throwing an error if it does not."The text was updated successfully, but these errors were encountered: