Browse Source

Update p2p/conn/secret_connection.go

Co-Authored-By: Anton Kaliaev <anton.kalyaev@gmail.com>
v0.31.9-changelog
Zaki Manian 5 years ago
committed by Jack Zampolin
parent
commit
8c9bf1dade
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      p2p/conn/secret_connection.go

+ 1
- 1
p2p/conn/secret_connection.go View File

@ -135,7 +135,7 @@ func MakeSecretConnection(conn io.ReadWriteCloser, locPrivKey crypto.PrivKey) (*
remPubKey, remSignature := authSigMsg.Key, authSigMsg.Sig
if remPubKey == nil {
return nil, errors.New("Peer sent a nil public key")
return nil, errors.New("peer sent a nil public key")
}
if !remPubKey.VerifyBytes(challenge[:], remSignature) {


Loading…
Cancel
Save