MuSig2AggregatePubkeys

Compute the full aggregate pubkey from the given participant pubkeys in their current order.

Synopsis

Declared in <musig.h>

std::optional<CPubKey>
MuSig2AggregatePubkeys(std::vector<CPubKey> const& pubkeys);

Return Value

The aggregate public key, or std::nullopt if aggregation fails.

Parameters

NameDescription
pubkeysThe participant public keys, in the order they should be aggregated.