p2p: integrate p2p/discover
Overview of changes: - ClientIdentity has been removed, use discover.NodeID - Server now requires a private key to be set (instead of public key) - Server performs the encryption handshake before launching Peer - Dial logic takes peers from discover table - Encryption handshake code has been cleaned up a bit - baseProtocol is gone because we don't exchange peers anymore - Some parts of baseProtocol have moved into Peer instead
Showing
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
p2p/protocol_test.go
deleted
100644 → 0
This diff is collapsed.
p2p/testpoc7.go
deleted
100644 → 0
Please register or sign in to comment