From 6797d8585167a9dc1e51843420ae4ab7eaf848a0 Mon Sep 17 00:00:00 2001 From: Ismail Khoffi Date: Mon, 25 Feb 2019 06:06:21 +0100 Subject: [PATCH] p2p: fix comment in secret connection (#3348) Just a minor followup on the review if #3347: Fixes a comment. [#3347 (comment)](https://github.com/tendermint/tendermint/pull/3347#discussion_r259582330) --- p2p/conn/secret_connection.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2p/conn/secret_connection.go b/p2p/conn/secret_connection.go index 2a06945b0..36d6ee1bb 100644 --- a/p2p/conn/secret_connection.go +++ b/p2p/conn/secret_connection.go @@ -358,8 +358,8 @@ func deriveSecretAndChallenge(dhSecret *[32]byte, locIsLeast bool) (recvSecret, return } -// computeDHSecret computes a shared secret Diffie-Hellman secret -// from a the own local private key and the others public key. +// computeDHSecret computes a Diffie-Hellman shared secret key +// from our own local private key and the other's public key. // // It returns an error if the computed shared secret is all zeroes. func computeDHSecret(remPubKey, locPrivKey *[32]byte) (shrKey *[32]byte, err error) {