-
Notifications
You must be signed in to change notification settings - Fork 18
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 #168
Comments
Recommendations: Add INVALID_PROOF_CONFIGURATION, INVALID_PROOF_DATETIME, and MALFORMED_PROOF_ERROR codes to the VC-DI spec as these are used here and multiple other cryptosuites. Error Codes Used but Not in DI SpecCodes used: INVALID_PROOF_CONFIGURATION and INVALID_PROOF_DATETIME.
Errors without Codes Suggested AssignmentsThe following could be grouped under the general category of a MALFORMED_PROOF_ERROR:
The following seems like an INVALID_PROOF_CONFIGURATION error.
|
We might want to just re-categorize everything under the following broad error categories:
and then have the |
PRs w3c/vc-data-integrity#274 and #174 have been merged. Closing. |
Similar to issues w3c/vc-di-ecdsa#63 and w3c/vc-di-eddsa#82 to unify error handling language across this specification and 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
Codes used: INVALID_PROOF_CONFIGURATION and INVALID_PROOF_DATETIME.
DataIntegrityProof
and/or |proofConfig|.|cryptosuite| is not set tobbs-2023
, anINVALID_PROOF_CONFIGURATION
error MUST be raised." From section Base Proof Configuration (bbs-2023)INVALID_PROOF_DATETIME
error MUST be raised." From section Base Proof Configuration (bbs-2023).Errors without Codes
These seemed to me to need codes and rigorous handling language. Line numbers are approximate. Need to assign to existing error codes or come up with new codes.
proofValue
string starts with u indicating that it is amultibase-base64url-no-pad-encoded
value, and throw an error if it does not." From section parseBaseProofValue.multibase-base64url-no-pad-encoded
value, and throw an error if it does not." From section parseDerivedProofValue."anonymous_holder_binding"
or"pseudonym_hidden_pid"
, the |commitment_with_proof| input MUST be supplied; if not supplied, an error SHOULD be returned." From section Base Proof Serialization (bbs-2023).The text was updated successfully, but these errors were encountered: