aboutsummaryrefslogtreecommitdiffstats
path: root/p2p
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2015-01-27 00:58:58 +0800
committerFelix Lange <fjl@twurst.com>2015-02-06 07:00:36 +0800
commit71765957e4442105647045a14a0a551459daddfd (patch)
treee518e30c919b6adfe3363f1347a41c4611f47086 /p2p
parent68205dec9ff8ab7d16c61f5e32b104d7aa20b352 (diff)
downloaddexon-71765957e4442105647045a14a0a551459daddfd.tar
dexon-71765957e4442105647045a14a0a551459daddfd.tar.gz
dexon-71765957e4442105647045a14a0a551459daddfd.tar.bz2
dexon-71765957e4442105647045a14a0a551459daddfd.tar.lz
dexon-71765957e4442105647045a14a0a551459daddfd.tar.xz
dexon-71765957e4442105647045a14a0a551459daddfd.tar.zst
dexon-71765957e4442105647045a14a0a551459daddfd.zip
get rid of Private Key in ClientIdentity
Diffstat (limited to 'p2p')
-rw-r--r--p2p/client_identity.go8
1 files changed, 3 insertions, 5 deletions
diff --git a/p2p/client_identity.go b/p2p/client_identity.go
index fca2756bd..ef01f1ad7 100644
--- a/p2p/client_identity.go
+++ b/p2p/client_identity.go
@@ -7,9 +7,8 @@ import (
// ClientIdentity represents the identity of a peer.
type ClientIdentity interface {
- String() string // human readable identity
- Pubkey() []byte // 512-bit public key
- PrivKey() []byte // 512-bit private key
+ String() string // human readable identity
+ Pubkey() []byte // 512-bit public key
}
type SimpleClientIdentity struct {
@@ -22,7 +21,7 @@ type SimpleClientIdentity struct {
pubkey []byte
}
-func NewSimpleClientIdentity(clientIdentifier string, version string, customIdentifier string, privkey []byte, pubkey []byte) *SimpleClientIdentity {
+func NewSimpleClientIdentity(clientIdentifier string, version string, customIdentifier string, pubkey []byte) *SimpleClientIdentity {
clientIdentity := &SimpleClientIdentity{
clientIdentifier: clientIdentifier,
version: version,
@@ -30,7 +29,6 @@ func NewSimpleClientIdentity(clientIdentifier string, version string, customIden
os: runtime.GOOS,
implementation: runtime.Version(),
pubkey: pubkey,
- privkey: privkey,
}
return clientIdentity