We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a5d015 commit 2fc0845Copy full SHA for 2fc0845
examples/schnorr.c
@@ -52,7 +52,7 @@ int main(void) {
52
}
53
/* Try to create a keypair with a valid context, it should only fail if
54
* the secret key is zero or out of range. */
55
- if (secp256k1_keypair_create(ctx, &keypair, seckey)) {
+ if (!secp256k1_keypair_create(ctx, &keypair, seckey)) {
56
printf("Generated secret key is invalid. This indicates an issue with the random number generator.\n");
57
return 1;
58
0 commit comments