-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
364 additions
and
180 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package lnpeer | ||
|
||
import ( | ||
"github.com/lightningnetwork/lnd/lnwire" | ||
"github.com/roasbeef/btcd/btcec" | ||
"github.com/roasbeef/btcd/wire" | ||
) | ||
|
||
// Peer is an interface which represents the remote lightning node inside our | ||
// system. | ||
type Peer interface { | ||
// SendMessage sends a variadic number of message to remote peer. The | ||
// first argument denotes if the method should block until the message | ||
// has been sent to the remote peer. | ||
SendMessage(sync bool, msg ...lnwire.Message) error | ||
|
||
// WipeChannel removes the channel uniquely identified by its channel | ||
// point from all indexes associated with the peer. | ||
WipeChannel(*wire.OutPoint) error | ||
|
||
// PubKey returns the serialized public key of the remote peer. | ||
PubKey() [33]byte | ||
|
||
// IdentityKey returns the public key of the remote peer. | ||
IdentityKey() *btcec.PublicKey | ||
} |
Oops, something went wrong.