@@ -40,7 +40,7 @@ typedef struct secp256k1_bulletproofs_generators secp256k1_bulletproofs_generato
40
40
* n: number of NUMS generators to produce. Should be 128 to allow for
41
41
* 64-bit rangeproofs
42
42
*/
43
- SECP256K1_API secp256k1_bulletproofs_generators * secp256k1_bulletproofs_generators_create (
43
+ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT secp256k1_bulletproofs_generators * secp256k1_bulletproofs_generators_create (
44
44
const secp256k1_context * ctx ,
45
45
size_t n
46
46
) SECP256K1_ARG_NONNULL (1 );
@@ -51,7 +51,7 @@ SECP256K1_API secp256k1_bulletproofs_generators *secp256k1_bulletproofs_generato
51
51
* In: data: data that came from `secp256k1_bulletproofs_generators_serialize`
52
52
* data_len: the length of the `data` buffer
53
53
*/
54
- SECP256K1_API secp256k1_bulletproofs_generators * secp256k1_bulletproofs_generators_parse (
54
+ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT secp256k1_bulletproofs_generators * secp256k1_bulletproofs_generators_parse (
55
55
const secp256k1_context * ctx ,
56
56
const unsigned char * data ,
57
57
size_t data_len
@@ -66,7 +66,7 @@ SECP256K1_API secp256k1_bulletproofs_generators* secp256k1_bulletproofs_generato
66
66
* least 33 times the number of generators; will be set to 33 times
67
67
* the number of generators on successful return
68
68
*/
69
- SECP256K1_API int secp256k1_bulletproofs_generators_serialize (
69
+ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_bulletproofs_generators_serialize (
70
70
const secp256k1_context * ctx ,
71
71
const secp256k1_bulletproofs_generators * gen ,
72
72
unsigned char * data ,
@@ -112,7 +112,7 @@ SECP256K1_API size_t secp256k1_bulletproofs_rangeproof_uncompressed_proof_length
112
112
* extra_commit: arbitrary extra data that the proof commits to (may be NULL if extra_commit_len is 0)
113
113
* extra_commit_len: length of the arbitrary extra data
114
114
*/
115
- SECP256K1_API int secp256k1_bulletproofs_rangeproof_uncompressed_prove (
115
+ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_bulletproofs_rangeproof_uncompressed_prove (
116
116
const secp256k1_context * ctx ,
117
117
const secp256k1_bulletproofs_generators * gens ,
118
118
const secp256k1_generator * asset_gen ,
@@ -141,7 +141,7 @@ SECP256K1_API int secp256k1_bulletproofs_rangeproof_uncompressed_prove(
141
141
* extra_commit: arbitrary extra data that the proof commits to (may be NULL if extra_commit_len is 0)
142
142
* extra_commit_len: length of the arbitrary extra data
143
143
*/
144
- SECP256K1_API int secp256k1_bulletproofs_rangeproof_uncompressed_verify (
144
+ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_bulletproofs_rangeproof_uncompressed_verify (
145
145
const secp256k1_context * ctx ,
146
146
secp256k1_scratch_space * scratch ,
147
147
const secp256k1_bulletproofs_generators * gens ,
0 commit comments