Go to the source code of this file.
|
| static bool | GetMuSig2KeyAggCache (const std::vector< CPubKey > &pubkeys, secp256k1_musig_keyagg_cache &keyagg_cache) |
| static std::optional< CPubKey > | GetCPubKeyFromMuSig2KeyAggCache (secp256k1_musig_keyagg_cache &keyagg_cache) |
| std::optional< CPubKey > | MuSig2AggregatePubkeys (const std::vector< CPubKey > &pubkeys, secp256k1_musig_keyagg_cache &keyagg_cache, const std::optional< CPubKey > &expected_aggregate) |
| std::optional< CPubKey > | MuSig2AggregatePubkeys (const std::vector< CPubKey > &pubkeys) |
| CExtPubKey | CreateMuSig2SyntheticXpub (const CPubKey &pubkey) |
| | Construct the BIP 328 synthetic xpub for a pubkey.
|
| uint256 | MuSig2SessionID (const CPubKey &script_pubkey, const CPubKey &part_pubkey, const uint256 &sighash) |
| std::optional< std::vector< uint8_t > > | CreateMuSig2AggregateSig (const std::vector< CPubKey > &part_pubkeys, const CPubKey &aggregate_pubkey, const std::vector< std::pair< uint256, bool > > &tweaks, const uint256 &sighash, const std::map< CPubKey, std::vector< uint8_t > > &pubnonces, const std::map< CPubKey, uint256 > &partial_sigs) |
◆ CreateMuSig2AggregateSig()
| std::optional< std::vector< uint8_t > > CreateMuSig2AggregateSig |
( |
const std::vector< CPubKey > & | part_pubkeys, |
|
|
const CPubKey & | aggregate_pubkey, |
|
|
const std::vector< std::pair< uint256, bool > > & | tweaks, |
|
|
const uint256 & | sighash, |
|
|
const std::map< CPubKey, std::vector< uint8_t > > & | pubnonces, |
|
|
const std::map< CPubKey, uint256 > & | partial_sigs ) |
◆ CreateMuSig2SyntheticXpub()
Construct the BIP 328 synthetic xpub for a pubkey.
Definition at line 71 of file musig.cpp.
◆ GetCPubKeyFromMuSig2KeyAggCache()
◆ GetMuSig2KeyAggCache()
◆ MuSig2AggregatePubkeys() [1/2]
| std::optional< CPubKey > MuSig2AggregatePubkeys |
( |
const std::vector< CPubKey > & | pubkeys | ) |
|
◆ MuSig2AggregatePubkeys() [2/2]
Compute the full aggregate pubkey from the given participant pubkeys in their current order. Outputs the secp256k1_musig_keyagg_cache and validates that the computed aggregate pubkey matches an expected aggregate pubkey. This is necessary for most MuSig2 operations.
Definition at line 54 of file musig.cpp.
◆ MuSig2SessionID()
◆ MUSIG_CHAINCODE
Initial value:{
[]()
consteval {
return uint256{
"868087ca02a6f974c4598924c36b57762d32cb45717167e300622c7167e38965"_hex_u8}; }(),
}
Definition at line 12 of file musig.cpp.