-
Notifications
You must be signed in to change notification settings - Fork 37.7k
test: Remove modinv python util helper function #27538
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
Conversation
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
Concept ACK |
Concept ACK also did a grep for modinv in /test and looks like you got all them |
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.
ACK dc14ba0
remove util also since unit tests there were removed in bitcoin#27538 Co-authored-by: theStack <sebastian.falbesoner@gmail.com>
remove util also since unit tests there were removed in bitcoin#27538 Co-authored-by: theStack <sebastian.falbesoner@gmail.com>
remove util also since unit tests there were removed in bitcoin#27538 Co-authored-by: theStack <sebastian.falbesoner@gmail.com>
remove util also since unit tests there were removed in bitcoin#27538 Co-authored-by: theStack <sebastian.falbesoner@gmail.com>
backport: merge bitcoin#22029, bitcoin#27538, bitcoin#21100, bitcoin#27542, bitcoin#24005, partial bitcoin#19953, bitcoin#23394, bitcoin#20292, bitcoin#20161, bitcoin#20842, bitcoin#26222 (secp256k1 tests)
Since #27483 was merged the
modinv()
body is just one line calling pythons own implementation ofpow()
. We can just remove the function as it doesn't seem to add any value. Additionally the comment in the function is now outdated and the test is only testing two ways of doing modular inverse but both using python'spow()
function.