Bitcoin Core 29.99.0
P2P Digital Currency
Functions
musig.cpp File Reference
#include <musig.h>
#include <secp256k1_musig.h>
Include dependency graph for musig.cpp:

Go to the source code of this file.

Functions

bool GetMuSig2KeyAggCache (const std::vector< CPubKey > &pubkeys, secp256k1_musig_keyagg_cache &keyagg_cache)
 Create a secp256k1_musig_keyagg_cache from the pubkeys in their current order. This is necessary for most MuSig2 operations. More...
 
std::optional< CPubKeyGetCPubKeyFromMuSig2KeyAggCache (secp256k1_musig_keyagg_cache &keyagg_cache)
 Retrieve the full aggregate pubkey from the secp256k1_musig_keyagg_cache. More...
 
std::optional< CPubKeyMuSig2AggregatePubkeys (const std::vector< CPubKey > &pubkeys)
 Compute the full aggregate pubkey from the given participant pubkeys in their current order. More...
 

Function Documentation

◆ GetCPubKeyFromMuSig2KeyAggCache()

std::optional< CPubKey > GetCPubKeyFromMuSig2KeyAggCache ( secp256k1_musig_keyagg_cache keyagg_cache)

Retrieve the full aggregate pubkey from the secp256k1_musig_keyagg_cache.

Definition at line 31 of file musig.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetMuSig2KeyAggCache()

bool GetMuSig2KeyAggCache ( const std::vector< CPubKey > &  pubkeys,
secp256k1_musig_keyagg_cache keyagg_cache 
)

Create a secp256k1_musig_keyagg_cache from the pubkeys in their current order. This is necessary for most MuSig2 operations.

Definition at line 9 of file musig.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MuSig2AggregatePubkeys()

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

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

Definition at line 46 of file musig.cpp.

Here is the call graph for this function: