Module protocol

Source
Expand description

Datatypes for the ouisync protocol and for interoperability between the network layer and the storage later

Structs§

Proof
Information that prove that a snapshot was created by a replica that has write access to the repository.
RepositoryId
RootNode
StorageSize
Strongly typed storage size.
Summary
Summary info of a snapshot subtree. Contains whether the subtree has been completely downloaded and the number of missing blocks in the subtree.
UntrustedProof

Enums§

MultiBlockPresence
Summary information about the presence of multiple blocks belonging to a subtree.
NodeState
SingleBlockPresence
Information about the presence of a single block.

Constants§

BLOCK_RECORD_SIZE
Size of the block db record in bytes.
BLOCK_SIZE
Block size in bytes.