Merge bitcoin-core/secp256k1#1706: musig/tests: initialize keypair

cde4130898 musig/tests: initialize keypair (Jonas Nick)

Pull request description:

  The keypair is unused in musig_partial_sign, but clang-snapshot gives a compiler warning anyway.

ACKs for top commit:
  real-or-random:
    ACK cde4130898

Tree-SHA512: 2a6c2b31c3ef8b5353c5dbdc156d052ff802d1f62d22214d952ee46223a9f87bc36b3ecdd49788381db379a01be83ded9def752747769b3751f3f058d57403e6
This commit is contained in:
merge-script
2025-07-21 16:24:44 +02:00

View File

@@ -918,6 +918,7 @@ static void musig_test_vectors_signverify(void) {
continue;
}
CHECK(secp256k1_ec_pubkey_parse(CTX, &pubkey, vector->pubkeys[0], sizeof(vector->pubkeys[0])));
CHECK(secp256k1_keypair_create(CTX, &keypair, vector->sk));
expected = c->error != MUSIG_AGGNONCE;
CHECK(expected == secp256k1_musig_aggnonce_parse(CTX, &aggnonce, vector->aggnonces[c->aggnonce_index]));