mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-08 21:59:10 +02:00
sign: Add CreateMuSig2Nonce
This commit is contained in:
@@ -18,6 +18,8 @@ struct secp256k1_musig_secnonce;
|
||||
using namespace util::hex_literals;
|
||||
constexpr uint256 MUSIG_CHAINCODE{"868087ca02a6f974c4598924c36b57762d32cb45717167e300622c7167e38965"_hex_u8};
|
||||
|
||||
constexpr size_t MUSIG2_PUBNONCE_SIZE{66};
|
||||
|
||||
//! 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.
|
||||
@@ -58,4 +60,6 @@ public:
|
||||
bool IsValid();
|
||||
};
|
||||
|
||||
uint256 MuSig2SessionID(const CPubKey& script_pubkey, const CPubKey& part_pubkey, const uint256& sighash);
|
||||
|
||||
#endif // BITCOIN_MUSIG_H
|
||||
|
||||
Reference in New Issue
Block a user