OP, what is the value of
deterministicValue that you used for this line?
if (secp256k1_musig_nonce_gen(
Secp256k1::context().get(), &secp256k1MusigSecretNonce,
&secp256k1MusigPublicNonce, deterministicValue, nullptr,
&secp256k1PublicKey, message, nullptr, nullptr) == 0) {
throw std::runtime_error{"failed to generate nonces"};
}
if (secp256k1_musig_nonce_gen(
Secp256k1::context().get(), &secp256k1MusigSecretNonce,
&secp256k1MusigPublicNonce, masterPrivateKey, nullptr,
&secp256k1PublicKey, messageHash, nullptr, nullptr) == 0) {
throw std::runtime_error{"failed to generate nonces"};
}
In this case, the
masterPrivateKey used is:
6942F99EDEE91D2B59780FC865016CC7F452973C3D7A8735AE9F76CAACB57C1A
It is important to note that everything is known except the full set of private/public key pairs that contributed to the aggregated signature or public key.