lnwire: add AnnounceSignatures interface

Add a AnnounceSignatures interface and ensure that AnnounceSignatures1
implements it.
This commit is contained in:
Elle Mouton
2023-10-26 12:17:12 +02:00
parent df65b7cad9
commit f230e2c574
2 changed files with 33 additions and 2 deletions

13
lnwire/interfaces.go Normal file
View File

@@ -0,0 +1,13 @@
package lnwire
// AnnounceSignatures is an interface that represents a message used to
// exchange signatures of a ChannelAnnouncment message during the funding flow.
type AnnounceSignatures interface {
// SCID returns the ShortChannelID of the channel.
SCID() ShortChannelID
// ChanID returns the ChannelID identifying the channel.
ChanID() ChannelID
Message
}