-
Notifications
You must be signed in to change notification settings - Fork 21
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
Analysis on audit "3.4 unwrap() risks" #101
Conversation
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 don't think we should return a Result
from the basepoint calculation.
It's ok to panic here, because an invalid basepoint is a serious bug in the program.
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.
This PR should be closed; the non-test code that it's changing doesn't exist in this crate any more.
Closing since it oudated, I opened ZcashFoundation/reddsa#61 instead |
I was checking all the
unwrap()
s we have in this codebase and i found:unwrap()
after checking there is some value. Is the correct way forCtOption
, they also have a commentXXX-jubjub: should not use CtOption here
however i have no idea what is the status of that.?
operator instead.expect("some more clear message")
This PR makes some changes where some improvement can be made.
The PR can have conflicts with #88 so we probably need to rebase if we consider to merge.