mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-20 02:27:21 +01:00
7dfe4018ce
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
24 lines
637 B
Go
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
|
|
}
|