-
Notifications
You must be signed in to change notification settings - Fork 27
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
Error handling #267
Error handling #267
Conversation
ba6914a
to
bdaf8fc
Compare
Updated the PR with the following
IMO this gives the more readable result. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Improves readability
draft-irtf-cfrg-bbs-signatures.md
Outdated
2. length(ph) > 2^64 - 1 | ||
3. for i in i_array, i > 2^64 - 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this would be checked by serialize
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. Iv added these checks here to ABORT instead of returning INVALID (which we would have to do if we were relying on serialize
for the checks).
That way we don't have to check the result of calculate_challenge
and calculate_domain
in the core operations.
Co-authored-by: Andrew Whitehead <[email protected]>
Breaking Changes
("1." is because I removed the checks for 0 and "2." is to align the max number of messages with the max number of generators) |
Ready for merge, subject to resolving the conflicts. |
Implicitly handle errors form the utility sub-routines in the core operations + address point B from #246