@@ -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
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 const secp256k1_bulletproofs_generators * gen ,
7272 unsigned char * data ,
@@ -112,7 +112,7 @@ SECP256K1_API size_t secp256k1_bulletproofs_rangeproof_uncompressed_proof_length
112112 * extra_commit: arbitrary extra data that the proof commits to (may be NULL if extra_commit_len is 0)
113113 * extra_commit_len: length of the arbitrary extra data
114114 */
115- SECP256K1_API int secp256k1_bulletproofs_rangeproof_uncompressed_prove (
115+ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_bulletproofs_rangeproof_uncompressed_prove (
116116 const secp256k1_context * ctx ,
117117 const secp256k1_bulletproofs_generators * gens ,
118118 const secp256k1_generator * asset_gen ,
@@ -141,7 +141,7 @@ SECP256K1_API int secp256k1_bulletproofs_rangeproof_uncompressed_prove(
141141 * extra_commit: arbitrary extra data that the proof commits to (may be NULL if extra_commit_len is 0)
142142 * extra_commit_len: length of the arbitrary extra data
143143 */
144- SECP256K1_API int secp256k1_bulletproofs_rangeproof_uncompressed_verify (
144+ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_bulletproofs_rangeproof_uncompressed_verify (
145145 const secp256k1_context * ctx ,
146146 secp256k1_scratch_space * scratch ,
147147 const secp256k1_bulletproofs_generators * gens ,
0 commit comments