From 4b735d71a5ee41440a57cfa0a743c05745d5c93c Mon Sep 17 00:00:00 2001 From: Olexandr88 Date: Sat, 4 Apr 2026 21:21:48 +0300 Subject: [PATCH] fix: handle single-signer case in MuSig2Sign --- utils/musig.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/musig.go b/utils/musig.go index 74626c2ad..3e2d9b892 100644 --- a/utils/musig.go +++ b/utils/musig.go @@ -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 for i := 1; i < len(signatures); i++ { var err error haveAllSigs, err = input.MuSig2CombineSig(