ValarDragon 7bf28af590
p2p/secret_connection: Switch salsa usage to hkdf + chacha
This now uses one hkdf on the X25519 shared secret to create
a key for the sender and receiver.
The hkdf call is now just called upon the computed shared
secret, since the shared secret is a function of the pubkeys.

The nonces now start at 0, as we are using chacha as a stream
cipher, and the sender and receiver now have different keys.
2018-07-26 00:12:32 +02:00
..
2018-07-01 22:36:49 -04:00
2018-07-01 22:36:49 -04:00
2018-07-01 22:36:49 -04:00
2018-07-01 22:36:49 -04:00
2018-07-01 22:36:49 -04:00
2018-07-02 13:04:34 -04:00
2018-07-24 21:53:37 -04:00
2018-07-01 22:36:49 -04:00
2018-07-24 21:53:37 -04:00

p2p

The p2p package provides an abstraction around peer-to-peer communication.

Docs:

  • Connection for details on how connections and multiplexing work
  • Peer for details on peer ID, handshakes, and peer exchange
  • Node for details about different types of nodes and how they should work
  • Pex for details on peer discovery and exchange
  • Config for details on some config option