Skip to content

Commit

Permalink
loop: fix musig2 typo
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeTsagk committed Jul 19, 2023
1 parent 916a823 commit 2a8a6ce
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 2a8a6ce

Please sign in to comment.