Expand description
Qualia Peer Runtime facade.
This crate is the application replacement for libp2p. It does not import
libp2p. It enables core-db qdnf only (no libp2p-compat, gpu-runtime,
wgsl-forge, privacy-he, zk-culling, or profile_target_1024).
Default qualia-core-db is Native Independent (libp2p-compat is LIG-only).
Packages remain open.
Application API: PeerHost::pair, PeerHost::exchange_protected,
and PeerHost::clinical_session. The 64-byte vertical slice
(two_peer_ipc_exchange) is an example, not the application API.
Structs§
- Capability
Version - Pinned capability identity: SHA-384 transcript digest plus generation.
- Clinical
Session - Session-owned clinical tables. Not a public patient index.
- Controller
Identity - Credential
Scope - Clinician / mission credential bound to one org, purpose and generation.
- Host
Admission - Aggregate admission owner for one host process.
- Inventory
Entry - One public networking entry. Names match the application-facing surface.
- IpcEndpoint
- One end of a same-device IPC pair.
- Lease
Table - Libp2p
Coupling - One remaining libp2p (or gossipsub-class) coupling isolated behind LIG.
- LinkId
- Epoch-scoped 128-bit QLink selector.
- Native
Peer - NymSimulated
Bearer - Deterministic, zero-heap in-memory simulated Nym mixnet bearer. Used for pure integration testing of the QSession handshake over Nym.
- Observed
Locator - Adapter-observed bearer locator. Never taken from a claimed payload field.
- Operation
Id - Local operation identity. Survives path change; never recycled while live.
- Peer
Builder - Peer
Host - Host builder for a bounded native peer cell.
- Redacted
Dashboard - Redacted operational counts. No patient / clinician identifier fields.
- Reservation
Handle - Owner-issued reservation. Not
Copy: a copied token cannot be mutated to reclaim a different amount. - Reservation
Ledger - Resource
Budget - Scope
Epoch - Scope / cell epoch binding for leases and caches.
- Service
Id - Session
Binding - Application session binding. Fields are private; Active requires a permit.
Enums§
- Plane
- Identifier fabric planes. A verified route is not a NaturalAgent.
- Policy
Outcome - QPolicy decision. Only
Allowwith a current grant handle admits service traffic. - Qdnf
Error - Typed protocol / runtime outcome. Display is diagnostic only; wire codes are
the
as u16discriminants below. - Session
State
Constants§
- AUTHORISED_
IPC_ MTU - Local-ipc MTU that fits 4096 + AEAD overhead + QFrame header.
- AUTHORISED_
PAYLOAD_ CAP - Authorised application payload ceiling (E04.5 / P2).
- AUTHORISED_
ROUNDTRIP_ CAP - Protected round-trip size. Equals
AUTHORISED_PAYLOAD_CAPon local-ipc. - CELL_
BYTES_ DEFAULT - Default per-peer cell when the caller does not specify a budget.
- NYM_
SPHINX_ MTU - Sphinx maximum payload size for standard Nym packets (1,024 bytes).
Traits§
Functions§
- active_
session_ count active-sessioncount.- admit_
capability_ generation - Anti-rollback: an offered generation older than
minis StaleGeneration. - admit_
scoped_ credential - Admit a scoped credential against the live revocation generation.
- authorised_
ipc_ stream_ exchange - Two peers constructed through one host owner exchange authorised protected data.
- authorised_
ipc_ stream_ exchange_ in - Same protected path, with the caller’s cell budget and bearer MTU.
- cargo_
toml_ depends_ on_ libp2p - True only if this crate’s Cargo.toml names a
libp2pcrate or feature. Package description / comments mentioning libp2p do not count. - decapsulate_
nym - Decapsulate a Nym Sphinx payload envelope into a QFrame and sender locator.
- denied_
op_ count denied-opcount.- encapsulate_
nym - Encapsulate a QFrame into a Nym Sphinx payload envelope.
- extra_
identity_ multiplies_ host_ budget - Extra DIDs/controllers cannot multiply the host byte cap.
- implicit_
dns_ ip_ fallback - This crate’s QPR path does not fall back to DNS or IP sockets.
- ipc_
pair - Construct a connected IPC pair with boot-scoped locators
0x01and0x02. - libp2p_
imported - This crate does not import
libp2p. - native_
independent_ daemon_ proven - Default daemons compile without libp2p. LIG remains an explicit feature.
- native_
ipc_ stream_ exchange - Two-peer native stream without libp2p, IP, or DNS. Protected QPR path.
- negotiate_
capability - Admit a peer only when generation is current and the pinned digest matches.
- pair_
ipc_ cells - Two native peers over
local-ipc-v1, admitted from oneHostAdmission. - patient_
identifiers_ on_ dashboard - Dashboard APIs do not surface patient identifiers.
- pin_
capability_ version - Pin a capability to a version digest. Empty id or generation 0 is rejected.
- public_
entry_ points - Public QPR entry points. None of these import or call libp2p.
- realistic_
device_ study_ executed - Realistic-user/device study (E20.6) has not been executed.
- redacted_
dashboard - Build a dashboard from counts only. Callers never pass patient ids.
- remaining_
libp2p_ couplings - Isolated LIG couplings. Not the Native Independent proven predicate.
- revoked_
credential_ count revoked-credentialcount.- safe_
failure - Fail closed with a typed code.
untrustedis not copied into the error. - two_
peer_ ipc_ exchange - Run A↔B native exchange and return payload bytes copied at B.
- universal_
org_ superuser - There is no organisation-wide superuser in this slice.
- verify_
update_ bytes - Signed update metadata: exact SHA-384 of the bytes. No
signedflag.