7bf28af590
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. |
||
---|---|---|
.. | ||
conn | ||
dummy | ||
pex | ||
trust | ||
upnp | ||
README.md | ||
base_reactor.go | ||
errors.go | ||
fuzz.go | ||
key.go | ||
key_test.go | ||
listener.go | ||
listener_test.go | ||
metrics.go | ||
netaddress.go | ||
netaddress_test.go | ||
node_info.go | ||
peer.go | ||
peer_set.go | ||
peer_set_test.go | ||
peer_test.go | ||
switch.go | ||
switch_test.go | ||
test_util.go | ||
types.go | ||
version.go | ||
wire.go |
README.md
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