aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/crypto.go
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2015-01-22 00:53:13 +0800
committerFelix Lange <fjl@twurst.com>2015-02-06 07:00:35 +0800
commit54252ede3177cb169fbb9e4824a31ce58cb0316c (patch)
tree06e456ef17291ec9f167b51d9fa4f2a840700fdb /p2p/crypto.go
parentfaa069a126da29a246193713568634e5be6edd2d (diff)
downloaddexon-54252ede3177cb169fbb9e4824a31ce58cb0316c.tar
dexon-54252ede3177cb169fbb9e4824a31ce58cb0316c.tar.gz
dexon-54252ede3177cb169fbb9e4824a31ce58cb0316c.tar.bz2
dexon-54252ede3177cb169fbb9e4824a31ce58cb0316c.tar.lz
dexon-54252ede3177cb169fbb9e4824a31ce58cb0316c.tar.xz
dexon-54252ede3177cb169fbb9e4824a31ce58cb0316c.tar.zst
dexon-54252ede3177cb169fbb9e4824a31ce58cb0316c.zip
add temporary forced session token generation
Diffstat (limited to 'p2p/crypto.go')
-rw-r--r--p2p/crypto.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/p2p/crypto.go b/p2p/crypto.go
index e8f4d551b..f5307cd5a 100644
--- a/p2p/crypto.go
+++ b/p2p/crypto.go
@@ -103,6 +103,9 @@ func (self *cryptoId) Run(conn io.ReadWriter, remotePubKeyS []byte, sessionToken
if auth, initNonce, randomPrivKey, _, err = self.startHandshake(remotePubKeyS, sessionToken); err != nil {
return
}
+ if sessionToken != nil {
+ clogger.Debugf("session-token: %v", hexkey(sessionToken))
+ }
clogger.Debugf("initiator-nonce: %v", hexkey(initNonce))
clogger.Debugf("initiator-random-private-key: %v", hexkey(crypto.FromECDSA(randomPrivKey)))
randomPublicKeyS, _ := ExportPublicKey(&randomPrivKey.PublicKey)