musig: update to BIP v1.0.0-rc.2 "Add ''pk'' arg to ''NonceGen''"

This commit is contained in:
Jonas Nick
2022-12-20 19:11:35 +00:00
parent d717a4980b
commit 36621d13be
5 changed files with 85 additions and 65 deletions

View File

@@ -112,7 +112,7 @@ int sign(const secp256k1_context* ctx, struct signer_secrets *signer_secrets, st
}
/* Initialize session and create secret nonce for signing and public
* nonce to send to the other signers. */
if (!secp256k1_musig_nonce_gen(ctx, &signer_secrets[i].secnonce, &signer[i].pubnonce, session_id, seckey, msg32, NULL, NULL)) {
if (!secp256k1_musig_nonce_gen(ctx, &signer_secrets[i].secnonce, &signer[i].pubnonce, session_id, seckey, &signer[i].pubkey, msg32, NULL, NULL)) {
return 0;
}
pubnonces[i] = &signer[i].pubnonce;