-
Notifications
You must be signed in to change notification settings - Fork 7
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
ECDSA-SD-2023: empty mandatory and selective pointers tests #46
Comments
@filip26 good cases. I think you found an error in my server side checks. I was rejecting the case with nothing selected but forgot that there could be mandatory reveal information. I've gotten some requests to update the spec test vectors with something a bit more relevant than fictional windsurfing races. Also the longer test cases from @aljones15 helped me find a bug in my primitives so I'm going to try to come up with something more relevant for the spec and something longer and a bit more realistic for adding here. Ideas are welcome. |
@filip26 I'm not aware of a normative statement for empty mandatoryPointers and selectiveDisclosure in the spec, but this is a good idea. |
@PatStLouis you are referring to:
How do these tests resolve this issue? |
The first test sends a request with and without mandatory pointers. (Issuer.sign - empty/null mandatory pointers) However, its expecting the issuer to inject mandatoryPointers if none were provided, as is indicated by the specification. For the 2 other points, the "derive" endpoint isn't provided by implementers, we are only testing the verification endpoint. Happy to leave this open if it doesn't quite address the issue. |
Understood, feel free to close it. It was intended as a suggestion for consideration, and I appreciate you taking the time to review and respond to it. |
Hi,
please consider testing corner cases when pointers are empty/null. The tests could show real maturity/stability of an implementation.
Issuer.sign - empty/null mandatory pointers
An implementation should return a base proof with no mandatory/always disclosed/ data.
Holder.derive - base proof from 1. + empty/null selective pointers
An implementation should fail, as there is nothing to disclose. @Wind4Greg please can you confirm? Thank you!
Holder.derive - base having mandatory pointers + empty/null selective pointers
An implementation should return a derived proof disclosing only mandatory data.
The text was updated successfully, but these errors were encountered: