Skip to content
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

tests: Initialize random group elements fully #814

Merged

Conversation

real-or-random
Copy link
Contributor

Also fix add a missing comment.

Also fix add a missing comment.
@gmaxwell
Copy link
Contributor

utACK. Looks fine to me.

@sipa
Copy link
Contributor

sipa commented Sep 13, 2020

utACK 5738e86

@real-or-random real-or-random merged commit a0e99fc into bitcoin-core:master Sep 13, 2020
@@ -86,6 +86,7 @@ void random_group_element_test(secp256k1_ge *ge) {
break;
}
} while(1);
ge->infinity = 0;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, on a second thought, this is not just necessary. secp256k1_ge_set_xo_var (a few lines above) sets infinity to 0.

I was playing around with multiple additional VERIFY_CHECKs when reviewing the schnorrsig PR and I wrongly believed that I found this bug ...

Well whatever, the correct was correct before this PR and it's correct after this PR. If we want, we can reverse this commit in a later PR.

jasonbcox pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Sep 28, 2020
Summary:
Also fix add a missing comment.

This is a backport of secp56k1 [[bitcoin-core/secp256k1#814 | [[bitcoin-core/secp256k1#814 | PR814]]]]

Test Plan:
  ninja check-secp256k1

Reviewers: #bitcoin_abc, jasonbcox

Reviewed By: #bitcoin_abc, jasonbcox

Differential Revision: https://reviews.bitcoinabc.org/D7613
deadalnix pushed a commit to Bitcoin-ABC/secp256k1 that referenced this pull request Sep 29, 2020
Summary:
Also fix add a missing comment.

This is a backport of secp56k1 [[bitcoin-core/secp256k1#814 | [[bitcoin-core/secp256k1#814 | PR814]]]]

Test Plan:
  ninja check-secp256k1

Reviewers: #bitcoin_abc, jasonbcox

Reviewed By: #bitcoin_abc, jasonbcox

Differential Revision: https://reviews.bitcoinabc.org/D7613
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants