Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion utils/musig.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func MuSig2Sign(version input.MuSig2Version, privKeys []*btcec.PrivateKey,

// Now that we have all partial sigs we can just combine them to
// get the final signature.
var haveAllSigs bool
haveAllSigs := len(signatures) == 1
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lnd/input does not allow a single signer use-case in musig2, so this patch is wrong.

I addressed the finding another way in #1110

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the clarification

for i := 1; i < len(signatures); i++ {
var err error
haveAllSigs, err = input.MuSig2CombineSig(
Expand Down