Skip to content

Commit fc94a2d

Browse files
Use SECP256K1_DEPRECATED for existing deprecated API functions
1 parent 3db0560 commit fc94a2d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

include/secp256k1.h

+6-3
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,8 @@ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_seckey_negate(
652652
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_privkey_negate(
653653
const secp256k1_context* ctx,
654654
unsigned char *seckey
655-
) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2);
655+
) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2)
656+
SECP256K1_DEPRECATED("Use secp256k1_ec_seckey_negate instead");
656657

657658
/** Negates a public key in place.
658659
*
@@ -692,7 +693,8 @@ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_privkey_tweak_add(
692693
const secp256k1_context* ctx,
693694
unsigned char *seckey,
694695
const unsigned char *tweak32
695-
) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3);
696+
) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3)
697+
SECP256K1_DEPRECATED("Use secp256k1_ec_seckey_tweak_add instead");
696698

697699
/** Tweak a public key by adding tweak times the generator to it.
698700
*
@@ -738,7 +740,8 @@ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_privkey_tweak_mul(
738740
const secp256k1_context* ctx,
739741
unsigned char *seckey,
740742
const unsigned char *tweak32
741-
) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3);
743+
) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3)
744+
SECP256K1_DEPRECATED("Use secp256k1_ec_seckey_tweak_mul instead");
742745

743746
/** Tweak a public key by multiplying it by a tweak value.
744747
*

0 commit comments

Comments
 (0)