Skip to content

Commit 0ffca6f

Browse files
committed
Merge #281: Make *key_cache const in musig_pubkey_get
e2eb3fa Make *key_cache const in musig_pubkey_get (Sanket Kanjalkar) Pull request description: ACKs for top commit: jonasnick: ACK e2eb3fa Tree-SHA512: 24d1375bd48440e805e82d8a7d371eebfa98f7ef2c7a60d86c720e8512b5fa5bb70499ea821f9cef81c73145a3569c243fa0ecb1c29d7c31c4515dafeba80e23
2 parents eb4fb6d + e2eb3fa commit 0ffca6f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/secp256k1_musig.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ SECP256K1_API int secp256k1_musig_pubkey_agg(
234234
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_musig_pubkey_get(
235235
const secp256k1_context *ctx,
236236
secp256k1_pubkey *agg_pk,
237-
secp256k1_musig_keyagg_cache *keyagg_cache
237+
const secp256k1_musig_keyagg_cache *keyagg_cache
238238
) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3);
239239

240240
/** Apply plain "EC" tweaking to a public key in a given keyagg_cache by

src/modules/musig/keyagg_impl.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ int secp256k1_musig_pubkey_agg(const secp256k1_context* ctx, secp256k1_scratch_s
278278
return 1;
279279
}
280280

281-
int secp256k1_musig_pubkey_get(const secp256k1_context* ctx, secp256k1_pubkey *agg_pk, secp256k1_musig_keyagg_cache *keyagg_cache) {
281+
int secp256k1_musig_pubkey_get(const secp256k1_context* ctx, secp256k1_pubkey *agg_pk, const secp256k1_musig_keyagg_cache *keyagg_cache) {
282282
secp256k1_keyagg_cache_internal cache_i;
283283
VERIFY_CHECK(ctx != NULL);
284284
ARG_CHECK(agg_pk != NULL);

0 commit comments

Comments
 (0)