Module hdk::p2p

source ·
Expand description

Methods for interacting with peers in the same DHT network.

Data on the DHT generally propagates at the speed of gossip and must be explicitly polled and retrieved.

Often we want more responsive and direct interactions between peers. These interactions come in two flavours, RPC style function calls and notification style ‘signals’.

All function calls use capability grants and claims to authenticate and authorize. Signals simply forward information about the introduction of new data on the DHT so that agents can push updates to each other rather than relying purely on polling.