Network Protocol

Common Structures

EventId

type EventId = [u8; 32];

inv

Inventory vectors are used for notifying other nodes about objects they have or data which is being requested.

DescriptionData TypeComments
invsVec<EventId>Inventory items

Upon receiving an unknown inventory object, a node will issue getevent.

getevent

Requests event data from a node.

DescriptionData TypeComments
invsVec<EventId>Inventory items

event

Event object data. This is either sent when a new event is created, or in response to getevent.

DescriptionData TypeComments
parentsVec<EventId>Parent events
timestampu64Event timestamp
actionu8Type of event
dataVec<u8>Event specific data

getheads

This message is only sent the first time a node connects to the network. It uses this message to synchronize with the current network state.

Once updated, a node uses the messages above to stay synchronized.

DescriptionData TypeComments
invsVec<EventId>Inventory items