mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
loop: fix musig2 typo
This commit is contained in:
parent
916a8238f5
commit
2a8a6cefc0
1 changed files with 5 additions and 5 deletions
10
loopout.go
10
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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue