lnrpc/watchtowerrpc: add WatchtowerBackend configs

This commit is contained in:
Conner Fromknecht committed 2019-06-20 16:53:25 -07:00
1 parent 72e4fbff97
commit 0db39d4fe6
3 files changed
+42

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
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
}