aboutsummaryrefslogtreecommitdiff
path: root/src/noscrypt.c
diff options
context:
space:
mode:
authorLibravatar vnugent <public@vaughnnugent.com>2024-02-02 23:05:48 -0500
committerLibravatar vnugent <public@vaughnnugent.com>2024-02-02 23:05:48 -0500
commit73c5a713fb164ae8b4ac8a891a8020e08eae0a3b (patch)
tree73dc9c2e343d02969304f8725cfdecd2348e3c2b /src/noscrypt.c
parent06c73004e1a39a7ea4ea3a89c22dee0f66adb236 (diff)
update api to return secpvalidate return code instead of internal return codes
Diffstat (limited to 'src/noscrypt.c')
-rw-r--r--src/noscrypt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/noscrypt.c b/src/noscrypt.c
index 71a3975..15d8da8 100644
--- a/src/noscrypt.c
+++ b/src/noscrypt.c
@@ -543,7 +543,7 @@ NC_EXPORT NCResult NC_CC NCValidateSecretKey(
CHECK_INVALID_ARG(ctx->secpCtx)
//Validate the secret key
- return secp256k1_ec_seckey_verify(ctx->secpCtx, sk->key) ? NC_SUCCESS : E_INVALID_ARG;
+ return secp256k1_ec_seckey_verify(ctx->secpCtx, sk->key);
}
//Ecdsa Functions