Skip to content

Commit 195b2d2

Browse files
committed
Merge branch 'fjl-feature/p2p-protocol-interface' into poc8
2 parents 710360b + 384b8c7 commit 195b2d2

22 files changed

Lines changed: 1985 additions & 2378 deletions

‎p2p/client_identity.go‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import (
55
"runtime"
66
)
77

8-
// should be used in Peer handleHandshake, incorporate Caps, ProtocolVersion, Pubkey etc.
8+
// ClientIdentity represents the identity of a peer.
99
type ClientIdentity interface {
10-
String() string
11-
Pubkey() []byte
10+
String() string // human readable identity
11+
Pubkey() []byte // 512-bit public key
1212
}
1313

1414
type SimpleClientIdentity struct {

‎p2p/connection.go‎

Lines changed: 0 additions & 275 deletions
This file was deleted.

0 commit comments

Comments
 (0)