@@ -733,10 +733,10 @@ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_pubkey_negate(
733
733
* invalid according to secp256k1_ec_seckey_verify, this
734
734
* function returns 0. seckey will be set to some unspecified
735
735
* value if this function returns 0.
736
- * In: tweak32: pointer to a 32-byte tweak. If the tweak is invalid according to
737
- * secp256k1_ec_seckey_verify, this function returns 0 . For
738
- * uniformly random 32-byte arrays the chance of being invalid
739
- * is negligible (around 1 in 2^128).
736
+ * In: tweak32: pointer to a 32-byte tweak, which must be valid according to
737
+ * secp256k1_ec_seckey_verify or 32 zero bytes . For uniformly
738
+ * random 32-byte tweaks, the chance of being invalid is
739
+ * negligible (around 1 in 2^128).
740
740
*/
741
741
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_seckey_tweak_add (
742
742
const secp256k1_context * ctx ,
@@ -761,10 +761,10 @@ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_privkey_tweak_add(
761
761
* Args: ctx: pointer to a context object.
762
762
* In/Out: pubkey: pointer to a public key object. pubkey will be set to an
763
763
* invalid value if this function returns 0.
764
- * In: tweak32: pointer to a 32-byte tweak. If the tweak is invalid according to
765
- * secp256k1_ec_seckey_verify, this function returns 0 . For
766
- * uniformly random 32-byte arrays the chance of being invalid
767
- * is negligible (around 1 in 2^128).
764
+ * In: tweak32: pointer to a 32-byte tweak, which must be valid according to
765
+ * secp256k1_ec_seckey_verify or 32 zero bytes . For uniformly
766
+ * random 32-byte tweaks, the chance of being invalid is
767
+ * negligible (around 1 in 2^128).
768
768
*/
769
769
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_pubkey_tweak_add (
770
770
const secp256k1_context * ctx ,
0 commit comments