lnd/lnrpc/watchtowerrpc/interface.go
Oliver Gugger 7dfe4018ce
multi: use btcd's btcec/v2 and btcutil modules
This commit was previously split into the following parts to ease
review:
 - 2d746f68: replace imports
 - 4008f0fd: use ecdsa.Signature
 - 849e33d1: remove btcec.S256()
 - b8f6ebbd: use v2 library correctly
 - fa80bca9: bump go modules
2022-03-09 19:02:37 +01:00

24 lines
637 B
Go

package watchtowerrpc
import (
"net"
"github.com/btcsuite/btcd/btcec/v2"
)
// WatchtowerBackend abstracts access to the watchtower information that is
// served via RPC connections.
type WatchtowerBackend interface {
// PubKey returns the public key for the watchtower used to
// authentication and encrypt traffic with clients.
PubKey() *btcec.PublicKey
// ListeningAddrs returns the listening addresses where the watchtower
// server can accept client connections.
ListeningAddrs() []net.Addr
// ExternalIPs returns the addresses where the watchtower can be reached
// by clients externally.
ExternalIPs() []net.Addr
}