Update p2p/conn/secret_connection.go

Co-Authored-By: Anton Kaliaev <anton.kalyaev@gmail.com>
This commit is contained in:
Zaki Manian 2019-09-21 10:45:30 -07:00 committed by Jack Zampolin
parent ebfaf30705
commit 8c9bf1dade

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) {