Skip to content

Commit

Permalink
Fix: GenerateNonce(ECPubKey) wasn't random as expected
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasDorier committed Sep 22, 2024
1 parent 63bffea commit 47b572f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NBitcoin/Secp256k1/Musig/MusigContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ public ECPrivKey Extract(SecpSchnorrSignature signature, MusigPartialSignature[]
/// <returns>A private nonce whose public part intended to be sent to other signers</returns>
public MusigPrivNonce GenerateNonce(ECPubKey signingPubKey)
{
return GenerateNonce(signingPubKey, Array.Empty<byte>());
return GenerateNonce(signingPubKey, null);
}
/// <summary>
/// This function derives a secret nonce that will be required for signing and
Expand Down

0 comments on commit 47b572f

Please sign in to comment.