-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Fix typos on signature.go #2065
Conversation
Pull Request Test Coverage Report for Build 7024494115
💛 - Coveralls |
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.
Good catches.
OK
@@ -124,8 +124,7 @@ func schnorrVerify(sig *Signature, hash []byte, pubKeyBytes []byte) error { | |||
// 7. Fail if is_infinite(R) | |||
// 8. Fail if not hash_even_y(R) | |||
// 9. Fail is x(R) != r. | |||
// 10. Return success iff not failure occured before reachign this | |||
// point. | |||
// 10. Return success if failure did not occur before reaching this point. |
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.
The term iff
is a scientific notation for "if and only if". So this is now wrong and not in line with the actual BIP: https://github.com/bitcoin/bips/blob/master/bip-0340.mediawiki#verification
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.
Damn, I missed that because the original line was not at all correct English.
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.
An iff
mixed in with the rest of the typos was indistinguishable from another type :)
Anyway, if you PR putting the iff
back I'll merge. If not, I'll PR tomorrow.
Fixes typos in the documentation.