mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 18:10:34 +01:00
24 lines
634 B
Go
24 lines
634 B
Go
package watchtowerrpc
|
|
|
|
import (
|
|
"net"
|
|
|
|
"github.com/btcsuite/btcd/btcec"
|
|
)
|
|
|
|
// 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
|
|
}
|