Skip to content

Conversation

real-or-random
Copy link
Contributor

Adds a rule to CONTRIBUTING.md and makes the code adhere to it.

@real-or-random real-or-random added assurance tweak/refactor meta/development processes, conventions, developer documentation, etc. labels Jan 17, 2024
@real-or-random
Copy link
Contributor Author

cc @theStack because you worked on #1393

size_t i_ver;
for (i_ver = 0; i_ver < len; i_ver++) {
SECP256K1_GE_VERIFY(&r[i_ver]);
}
}
#endif
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These loops caught my attention initially. Here we set i inside VERIFY block, but we also use it outside. I think this should be avoided out of an abundance of caution.

Copy link
Contributor

@theStack theStack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Concept ACK

Copy link
Contributor

@theStack theStack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code-review ACK f65f1a4

@real-or-random
Copy link
Contributor Author

thanks, rebased.

Copy link
Contributor

@theStack theStack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

re-ACK f3b91f0

Adds a rule to CONTRIBUTING.md and makes the code adhere to it.
Copy link
Contributor

@theStack theStack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

re-ACK ee7083f
(only whitespace fixes since my previous ACK)

@bitcoin-core bitcoin-core deleted a comment from 88woods88 Aug 5, 2024
@bitcoin-core bitcoin-core deleted a comment from 88woods88 Aug 5, 2024
Copy link
Contributor

@stratospher stratospher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK ee7083f. if you retouch - few more places in the musig module needs to be updated with this pattern too.

real-or-random added a commit to real-or-random/secp256k1 that referenced this pull request Aug 19, 2025
This is slightly more pedantic because it avoids suppressing the warning
value when not necessary, and I find it more readable. And it matches our
current conventions, see for example
secp256k1_ellswift_xswiftec_inv_var and see also my PR
bitcoin-core#1485
(which I should rebase...)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assurance meta/development processes, conventions, developer documentation, etc. tweak/refactor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants