Skip to content

Commit

Permalink
Merge pull request #612 from GeorgeTsagk/fix-typo
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeTsagk committed Jul 20, 2023
2 parents 916a823 + 2a8a6ce commit a4db262
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions loopout.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:],
Expand All @@ -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 {
Expand Down

0 comments on commit a4db262

Please sign in to comment.