Update p2p/conn/secret_connection.go

Co-Authored-By: Anton Kaliaev <anton.kalyaev@gmail.com>
This commit is contained in:
Zaki Manian
2019-10-01 23:00:35 -07:00
committed by Jack Zampolin
co-authored by Anton Kaliaev
parent ebfaf30705
commit 8c9bf1dade
+1 -1
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) {