Skip to content

Commit

Permalink
fix schnorr signature tests
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Sep 3, 2024
1 parent 9a5d015 commit 2fc0845
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/schnorr.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ int main(void) {
}
/* Try to create a keypair with a valid context, it should only fail if
* the secret key is zero or out of range. */
if (secp256k1_keypair_create(ctx, &keypair, seckey)) {
if (!secp256k1_keypair_create(ctx, &keypair, seckey)) {
printf("Generated secret key is invalid. This indicates an issue with the random number generator.\n");
return 1;
}
Expand Down

0 comments on commit 2fc0845

Please sign in to comment.