brontide: fix minor typo
This commit is contained in:
parent
88c15abeef
commit
2408a3ddcf
@ -44,7 +44,7 @@ func NewListener(localStatic *btcec.PrivateKey, listenAddr string) (*Listener,
|
|||||||
// Accept waits for and returns the next connection to the listener. All
|
// Accept waits for and returns the next connection to the listener. All
|
||||||
// incoming connections are authenticated via the three act Brontide
|
// incoming connections are authenticated via the three act Brontide
|
||||||
// key-exchange scheme. This funciton will fail with a non-nil error in the
|
// key-exchange scheme. This funciton will fail with a non-nil error in the
|
||||||
// case that either the handhska breaks down, or the remote peer doesn't know
|
// case that either the handshake breaks down, or the remote peer doesn't know
|
||||||
// our static public key.
|
// our static public key.
|
||||||
//
|
//
|
||||||
// Part of the net.Listener interface.
|
// Part of the net.Listener interface.
|
||||||
@ -84,8 +84,8 @@ func (l *Listener) Accept() (net.Conn, error) {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
// Finally, finish the handhskae processes by reading and decrypting
|
// Finally, finish the handshake processes by reading and decrypting
|
||||||
// the conneciton peer's static public key. If this succeeeds then both
|
// the connection peer's static public key. If this succeeds then both
|
||||||
// sides have mutually authenticated each other.
|
// sides have mutually authenticated each other.
|
||||||
var actThree [ActThreeSize]byte
|
var actThree [ActThreeSize]byte
|
||||||
if _, err := io.ReadFull(conn, actThree[:]); err != nil {
|
if _, err := io.ReadFull(conn, actThree[:]); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user