mirror of
https://github.com/vacp2p/specs.git
synced 2026-01-08 23:08:09 -05:00
14 lines
460 B
Markdown
14 lines
460 B
Markdown
5 Datastructures
|
|
================
|
|
|
|
The network protocol deals with these datastructures:
|
|
|
|
- a `PrivateKey`, the private key of a node.
|
|
- a `PublicKey`, the public key of a node.
|
|
- a `PeerID`, a hash of a node's public key.
|
|
- a `Node`[1], has a PeerID, and open connections to other `Nodes`.
|
|
- a `Connection`, a point-to-point link between two Nodes (muxes 1 or more streams)
|
|
- a `Stream`, a duplex message channel.
|
|
|
|
[1] currently called `PeerHost` in go-ipfs.
|