From 2fc0845130ef8d4d8bce94d7847909aa91e44b75 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 3 Sep 2024 17:29:41 +0300 Subject: [PATCH] fix schnorr signature tests --- examples/schnorr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/schnorr.c b/examples/schnorr.c index 326e830169..6f34f599ab 100644 --- a/examples/schnorr.c +++ b/examples/schnorr.c @@ -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; }