Module sync

Module sync 

Source
Expand description

Data structures and cryptographic models for client-to-server data backup.

Structs§

ApiRegisterRequest
IdRange

Enums§

RemoteRegisterResult

Functions§

allocate_local_id
Allocate a node ID locally, requesting a new range from the server proactively if remaining count drops below 3,000.
register_on_server
replenish_tokens
Replenish local blind tokens by authenticating with the server and issuing a batch of signed tokens.
reserve_ids_remote
Proactively reserve a block of 10,000 IDs from the server.
set_mock_register_result
start_sync_session
Spend one local token to initiate an anonymous sync session with the server.
upload_graph_chunk
Slices local node data into 32KB chunks and uploads them.