mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-09-12 05:32:22 +02:00
musig: Reject empty pubkey list in GetMuSig2KeyAggCache
This commit is contained in:
@@ -18,6 +18,10 @@ constexpr uint256 MUSIG_CHAINCODE{
|
||||
|
||||
static bool GetMuSig2KeyAggCache(const std::vector<CPubKey>& pubkeys, secp256k1_musig_keyagg_cache& keyagg_cache)
|
||||
{
|
||||
if (pubkeys.empty()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Parse the pubkeys
|
||||
std::vector<secp256k1_pubkey> secp_pubkeys;
|
||||
std::vector<const secp256k1_pubkey*> pubkey_ptrs;
|
||||
|
||||
Reference in New Issue
Block a user