aboutsummaryrefslogtreecommitdiff
path: root/src/noscrypt.h
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.h
parent06c73004e1a39a7ea4ea3a89c22dee0f66adb236 (diff)
update api to return secpvalidate return code instead of internal return codes
Diffstat (limited to 'src/noscrypt.h')
-rw-r--r--src/noscrypt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/noscrypt.h b/src/noscrypt.h
index b282085..34e119d 100644
--- a/src/noscrypt.h
+++ b/src/noscrypt.h
@@ -275,7 +275,7 @@ NC_EXPORT NCResult NC_CC NCGetPublicKey(
is functionally the same as calling secp256k1_ec_seckey_verify.
* @param ctx A pointer to the existing library context
* @param sk A pointer to the secret key to verify
-* @return NC_SUCCESS if the secret key is in a valid format, otherwise an error code
+* @return 1 if the secret key is valid, 0 if it is not, otherwise an error code
*/
NC_EXPORT NCResult NC_CC NCValidateSecretKey(
const NCContext* ctx,