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