Skip to main content

Module host

Module host 

Source
Expand description

Native peer host. Replaces libp2p Swarm + NetworkBehaviour.

Discovery is QLink beacons (not mDNS). Lookup is QSR (not Kademlia). Streams are QSession (not Yamux). Session keys are qpr-pq-1 (not Noise). Application send/receive requires a verified permit and packet protection.

Re-exports§

pub use builder::PeerBuilder;
pub use builder::CELL_BYTES_DEFAULT;
pub use driver::SealedFrame;
pub use exchange::authorised_ipc_stream_exchange;
pub use identity::ControllerIdentity;
pub use services::ServiceId;
pub use session_table::SessionHandle;
pub use session_table::SessionTable;
pub use session_table::MAX_SESSIONS;

Modules§

builder
Peer construction. The ledger is sized to the caller’s cell budget.
driver
Protected send/receive/close. Offsets commit only after accepted transfer.
exchange
Authorised protected IPC exchange. Public QPR must not copy plaintext.
identity
Persistent controller identity. Replaces libp2p PeerId.
services
Governed service identifiers. Replaces libp2p StreamProtocol strings.
session_table
Bounded session table. Multiple live sessions; close releases the ledger handle.

Structs§

NativePeer

Functions§

native_ipc_stream_exchange
Two-peer native stream without libp2p, IP, or DNS. Protected QPR path.