mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-25 14:52:17 +00:00
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)
This commit is contained in:
parent
cdf3a74f48
commit
6797d85851
@ -358,8 +358,8 @@ func deriveSecretAndChallenge(dhSecret *[32]byte, locIsLeast bool) (recvSecret,
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// computeDHSecret computes a shared secret Diffie-Hellman secret
|
// computeDHSecret computes a Diffie-Hellman shared secret key
|
||||||
// from a the own local private key and the others public 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.
|
// It returns an error if the computed shared secret is all zeroes.
|
||||||
func computeDHSecret(remPubKey, locPrivKey *[32]byte) (shrKey *[32]byte, err error) {
|
func computeDHSecret(remPubKey, locPrivKey *[32]byte) (shrKey *[32]byte, err error) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user