-
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
Ensure created
proof option is optional
#47
Comments
Hi @dlongley (and @msporny) I'm attempting to write up a PR for this but have a question on how we should document things. In the VC-Data-Integrity Spec the various proof attributes are carefully defined and properly marked as OPTIONAL, REQUIRED, or other appropriate indicators. It seems that in the DI-ECDSA specification (and others) we should refer back to VC-Data-Integrity and not repeat ourselves and possibly insert errors. Would something like the following work for the DataIntegrityProof section of VC-DI-ECDSA: The attributes of the DataIntegrityProof proof field are defined in VC-Data-Integrity Spec for ECDSA the following attributes take on the following restricted values:
Or should we just repeat the language from Data Integrity for the created attribute. Note that we will want to do whatever change looks best to VC-DI-EDDSA and VC-DI-BBS since they also use this language. |
Your instinct is correct, don't repeat language that exists in other specifications... instead, point to the other specification for the definitions and normative language. We can add constraining language in the spec if necessary, but in general, follow "don't repeat yourself" principles for exactly the reasons you outline. |
This was implemented in PR #50 and has been correctly applied after the accidental reversion. See the first sentence here https://w3c.github.io/vc-di-ecdsa/#dataintegrityproof. |
The current proof configuration algorithm seems to make
created
required instead of optional, this should be fixed.The text was updated successfully, but these errors were encountered: