aboutsummaryrefslogtreecommitdiff
path: root/include/noscrypt.h
diff options
context:
space:
mode:
authorLibravatar vnugent <public@vaughnnugent.com>2024-05-29 13:25:51 -0400
committerLibravatar vnugent <public@vaughnnugent.com>2024-05-29 13:25:51 -0400
commit88c9095743a12cf8fc1793c607ba3a1e4fa86483 (patch)
tree4c96aa75f5ea28a29ab8ab96e8d351fb283c554d /include/noscrypt.h
parent718be80a4810b9352de7eb0707da54020aa6b649 (diff)
refactor!: return NC_SUCCESS when validating secret key
Diffstat (limited to 'include/noscrypt.h')
-rw-r--r--include/noscrypt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/noscrypt.h b/include/noscrypt.h
index 036d0bd..cdc74fe 100644
--- a/include/noscrypt.h
+++ b/include/noscrypt.h
@@ -314,7 +314,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 1 if the secret key is valid, 0 if it is not, otherwise an error code
+* @return NC_SUCCESS if the secret key is valid, otherwise an error code
*/
NC_EXPORT NCResult NC_CC NCValidateSecretKey(
const NCContext* ctx,