Skip to content

Commit a25853f

Browse files
authored
Merge pull request #141 from lightninglabs/zombierecovery-p2tr
zombierecovery: support MuSig2 to rescue Simple Taproot channels
2 parents 3a0bb3a + b499b37 commit a25853f

File tree

10 files changed

+722
-145
lines changed

10 files changed

+722
-145
lines changed

.golangci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ linters:
5454
- protogetter
5555
- depguard
5656
- mnd
57+
- gomoddirectives
5758

5859
issues:
5960
exclude-rules:

cmd/chantools/zombierecovery_findmatches.go

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -95,16 +95,19 @@ type nodeInfo struct {
9595
}
9696

9797
type channel struct {
98-
ChannelID string `json:"short_channel_id"`
99-
ChanPoint string `json:"chan_point"`
100-
Address string `json:"address"`
101-
Capacity int64 `json:"capacity"`
102-
txid string
103-
vout uint32
104-
ourKeyIndex uint32
105-
ourKey *btcec.PublicKey
106-
theirKey *btcec.PublicKey
107-
witnessScript []byte
98+
ChannelID string `json:"short_channel_id"`
99+
ChanPoint string `json:"chan_point"`
100+
Address string `json:"address"`
101+
Capacity int64 `json:"capacity"`
102+
MuSig2NonceRandomness string `json:"musig2_nonce_randomness,omitempty"`
103+
MuSig2Nonces string `json:"musig2_nonces,omitempty"`
104+
txid string
105+
vout uint32
106+
ourKeyIndex uint32
107+
ourKey *btcec.PublicKey
108+
theirKey *btcec.PublicKey
109+
pkScript []byte
110+
witnessScript []byte
108111
}
109112

110113
type match struct {

0 commit comments

Comments
 (0)