mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-24 14:22:16 +00:00
Update p2p/conn/secret_connection.go
Co-Authored-By: Anton Kaliaev <anton.kalyaev@gmail.com>
This commit is contained in:
parent
ebfaf30705
commit
8c9bf1dade
@ -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…
x
Reference in New Issue
Block a user