htlcswitch: eliminate HopID in favor of a [33]byte for compressed pub keys

This commit is contained in:
Olaoluwa Osuntokun committed 2017-06-16 23:38:52 +02:00
1 parent ea57a94c2e
commit 4c7af9f16d
3 files changed
+5 -29

No files matched your search

+2 -7
View File
@@ -1,8 +1,6 @@
package htlcswitch
import (
"crypto/sha256"
"github.com/lightningnetwork/lnd/channeldb"
"github.com/lightningnetwork/lnd/lnwallet"
"github.com/lightningnetwork/lnd/lnwire"
@@ -83,15 +81,12 @@ type Peer interface {
// SendMessage sends message to remote peer.
SendMessage(lnwire.Message) error
// ID returns the lightning network peer id.
ID() [sha256.Size]byte
// WipeChannel removes the passed channel from all indexes associated
// with the peer.
WipeChannel(*lnwallet.LightningChannel) error
// PubKey returns the peer public key.
PubKey() []byte
// PubKey returns the serialize public key of the source peer.
PubKey() [33]byte
// Disconnect disconnects with peer if we have error which we can't
// properly handle.