lnd/watchtower/lookout
Elle Mouton 204ca6cb0f
watchtower: introduce CommitmentType
In this commit a new enum, CommitmentType, is introduced and initially
there are 3 CommitmentTypes: Legacy, LegacyTweakless and Anchor.

Then, various methods are added to `CommitmentType`. This allows us to
remove a bunch of "if-else" chains from the `wtclient` and `lookout`
code. This will also make things easier to extend when a new commitment
type (like Taproot) is added.
2024-01-04 14:37:42 +02:00
..
interface.go watchtower/multi: move BreachHint to blob pkg 2019-06-13 17:40:04 -07:00
justice_descriptor_test.go watchtower: introduce CommitmentType 2024-01-04 14:37:42 +02:00
justice_descriptor.go watchtower: introduce CommitmentType 2024-01-04 14:37:42 +02:00
log.go watchtower/lookout/log: adds lookout subsystem logger 2018-10-31 20:42:07 -07:00
lookout_test.go lnwire: update Sig to support both ECDSA and schnorr sigs 2023-08-22 16:29:19 -07:00
lookout.go multi: Fix typos [skip ci] 2022-01-24 12:19:02 +02:00
mock.go watchtower: remove dev tag from unit test files 2020-08-20 12:12:51 -07:00
punisher.go multi: add labels to lnd native transactions 2020-07-29 13:46:07 +02:00