@@ -40,7 +40,7 @@ typedef struct secp256k1_bulletproofs_generators secp256k1_bulletproofs_generato
4040 * n: number of NUMS generators to produce. Should be 128 to allow for
4141 * 64-bit rangeproofs
4242 */
43- SECP256K1_API secp256k1_bulletproofs_generators * secp256k1_bulletproofs_generators_create (
43+ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT secp256k1_bulletproofs_generators * secp256k1_bulletproofs_generators_create (
4444 const secp256k1_context * ctx ,
4545 size_t n
4646) SECP256K1_ARG_NONNULL (1 );
@@ -51,7 +51,7 @@ SECP256K1_API secp256k1_bulletproofs_generators *secp256k1_bulletproofs_generato
5151 * In: data: data that came from `secp256k1_bulletproofs_generators_serialize`
5252 * data_len: the length of the `data` buffer
5353 */
54- SECP256K1_API secp256k1_bulletproofs_generators * secp256k1_bulletproofs_generators_parse (
54+ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT secp256k1_bulletproofs_generators * secp256k1_bulletproofs_generators_parse (
5555 const secp256k1_context * ctx ,
5656 const unsigned char * data ,
5757 size_t data_len
@@ -66,7 +66,7 @@ SECP256K1_API secp256k1_bulletproofs_generators* secp256k1_bulletproofs_generato
6666 * least 33 times the number of generators; will be set to 33 times
6767 * the number of generators on successful return (cannot be NULL)
6868 */
69- SECP256K1_API int secp256k1_bulletproofs_generators_serialize (
69+ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_bulletproofs_generators_serialize (
7070 const secp256k1_context * ctx ,
7171 secp256k1_bulletproofs_generators * gen ,
7272 unsigned char * data ,
@@ -101,7 +101,7 @@ SECP256K1_API size_t secp256k1_bulletproofs_rangeproof_uncompressed_proof_length
101101 * buffer, call `secp256k1_bulletproofs_rangeproof_uncompressed_proof_length` or
102102 * use `SECP256K1_BULLETPROOFS_RANGEPROOF_UNCOMPRESSED_MAX_LENGTH`
103103 */
104- SECP256K1_API int secp256k1_bulletproofs_rangeproof_uncompressed_prove (
104+ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_bulletproofs_rangeproof_uncompressed_prove (
105105 const secp256k1_context * ctx ,
106106 const secp256k1_bulletproofs_generators * gens ,
107107 const secp256k1_generator * asset_gen ,
@@ -118,7 +118,7 @@ SECP256K1_API int secp256k1_bulletproofs_rangeproof_uncompressed_prove(
118118 size_t extra_commit_len
119119) SECP256K1_ARG_NONNULL (1 ) SECP256K1_ARG_NONNULL (2 ) SECP256K1_ARG_NONNULL (2 ) SECP256K1_ARG_NONNULL (3 ) SECP256K1_ARG_NONNULL (4 ) SECP256K1_ARG_NONNULL (5 ) SECP256K1_ARG_NONNULL (10 ) SECP256K1_ARG_NONNULL (11 );
120120
121- SECP256K1_API int secp256k1_bulletproofs_rangeproof_uncompressed_verify (
121+ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_bulletproofs_rangeproof_uncompressed_verify (
122122 const secp256k1_context * ctx ,
123123 secp256k1_scratch_space * scratch ,
124124 const secp256k1_bulletproofs_generators * gens ,
0 commit comments