[#MuSig2AggregatePubkeys-09]
= MuSig2AggregatePubkeys
:mrdocs:

Compute the full aggregate pubkey from the given participant pubkeys in their current order&period;

== Synopsis

Declared in `&lt;musig&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::optional&lt;CPubKey&gt;
MuSig2AggregatePubkeys(std::vector&lt;CPubKey&gt; const& pubkeys);
----

== Return Value

The aggregate public key, or std&colon;&colon;nullopt if aggregation fails&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *pubkeys*
| The participant public keys, in the order they should be aggregated&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
