diff --git a/loopout.go b/loopout.go index 780a63dc4..f9f372a59 100644 --- a/loopout.go +++ b/loopout.go @@ -1356,20 +1356,20 @@ func (s *loopOutSwap) createMuSig2SweepTxn( } var ( - signers [][]byte - muSig2Verion input.MuSig2Version + signers [][]byte + muSig2Version input.MuSig2Version ) // Depending on the MuSig2 version we either pass 32 byte Schnorr // public keys or normal 33 byte public keys. if s.ProtocolVersion >= loopdb.ProtocolVersionMuSig2 { - muSig2Verion = input.MuSig2Version100RC2 + muSig2Version = input.MuSig2Version100RC2 signers = [][]byte{ s.HtlcKeys.SenderInternalPubKey[:], s.HtlcKeys.ReceiverInternalPubKey[:], } } else { - muSig2Verion = input.MuSig2Version040 + muSig2Version = input.MuSig2Version040 signers = [][]byte{ s.HtlcKeys.SenderInternalPubKey[1:], s.HtlcKeys.ReceiverInternalPubKey[1:], @@ -1384,7 +1384,7 @@ func (s *loopOutSwap) createMuSig2SweepTxn( // Now we're creating a local MuSig2 session using the receiver key's // key locator and the htlc's root hash. musig2SessionInfo, err := s.lnd.Signer.MuSig2CreateSession( - ctx, muSig2Verion, &s.HtlcKeys.ClientScriptKeyLocator, signers, + ctx, muSig2Version, &s.HtlcKeys.ClientScriptKeyLocator, signers, lndclient.MuSig2TaprootTweakOpt(htlcScript.RootHash[:], false), ) if err != nil {