Skip to content

Commit 2fc0845

Browse files
author
root
committed
fix schnorr signature tests
1 parent 9a5d015 commit 2fc0845

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/schnorr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ int main(void) {
5252
}
5353
/* Try to create a keypair with a valid context, it should only fail if
5454
* the secret key is zero or out of range. */
55-
if (secp256k1_keypair_create(ctx, &keypair, seckey)) {
55+
if (!secp256k1_keypair_create(ctx, &keypair, seckey)) {
5656
printf("Generated secret key is invalid. This indicates an issue with the random number generator.\n");
5757
return 1;
5858
}

0 commit comments

Comments
 (0)