Skip to content

Commit

Permalink
zombierecovery: support MuSig2
Browse files Browse the repository at this point in the history
  • Loading branch information
guggero committed Aug 7, 2024
1 parent 3a0bb3a commit b499b37
Show file tree
Hide file tree
Showing 10 changed files with 722 additions and 145 deletions.
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ linters:
- protogetter
- depguard
- mnd
- gomoddirectives

issues:
exclude-rules:
Expand Down
23 changes: 13 additions & 10 deletions cmd/chantools/zombierecovery_findmatches.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,19 @@ type nodeInfo struct {
}

type channel struct {
ChannelID string `json:"short_channel_id"`
ChanPoint string `json:"chan_point"`
Address string `json:"address"`
Capacity int64 `json:"capacity"`
txid string
vout uint32
ourKeyIndex uint32
ourKey *btcec.PublicKey
theirKey *btcec.PublicKey
witnessScript []byte
ChannelID string `json:"short_channel_id"`
ChanPoint string `json:"chan_point"`
Address string `json:"address"`
Capacity int64 `json:"capacity"`
MuSig2NonceRandomness string `json:"musig2_nonce_randomness,omitempty"`
MuSig2Nonces string `json:"musig2_nonces,omitempty"`
txid string
vout uint32
ourKeyIndex uint32
ourKey *btcec.PublicKey
theirKey *btcec.PublicKey
pkScript []byte
witnessScript []byte
}

type match struct {
Expand Down
Loading

0 comments on commit b499b37

Please sign in to comment.