Skip to main content

qualia_peer/
lib.rs

1//! Qualia Peer Runtime facade.
2//!
3//! This crate is the application replacement for libp2p. It does not import
4//! `libp2p`. It enables core-db `qdnf` only (no `libp2p-compat`, `gpu-runtime`,
5//! `wgsl-forge`, `privacy-he`, `zk-culling`, or `profile_target_1024`).
6//! Default `qualia-core-db` is Native Independent (`libp2p-compat` is LIG-only).
7//! Packages remain open.
8//!
9//! Application API: [`PeerHost::pair`], [`PeerHost::exchange_protected`],
10//! and [`PeerHost::clinical_session`]. The 64-byte vertical slice
11//! (`two_peer_ipc_exchange`) is an example, not the application API.
12
13mod api;
14mod clinical;
15mod inventory;
16mod native_independent;
17mod negotiate;
18mod ops;
19
20pub use api::PeerHost;
21pub use clinical::ClinicalSession;
22pub use inventory::{libp2p_imported, public_entry_points, InventoryEntry};
23pub use native_independent::{
24    cargo_toml_depends_on_libp2p, implicit_dns_ip_fallback, native_independent_daemon_proven,
25    remaining_libp2p_couplings, Libp2pCoupling,
26};
27pub use negotiate::{
28    admit_capability_generation, negotiate_capability, pin_capability_version, verify_update_bytes,
29    CapabilityVersion,
30};
31pub use ops::{
32    active_session_count, admit_scoped_credential, denied_op_count,
33    patient_identifiers_on_dashboard, realistic_device_study_executed, redacted_dashboard,
34    revoked_credential_count, safe_failure, universal_org_superuser, CredentialScope,
35    RedactedDashboard,
36};
37pub use qualia_core_db::net::peer::cells::{extra_identity_multiplies_host_budget, HostAdmission};
38pub use qualia_core_db::net::peer::host::exchange::{
39    authorised_ipc_stream_exchange_in, pair_ipc_cells, AUTHORISED_IPC_MTU, AUTHORISED_PAYLOAD_CAP,
40    AUTHORISED_ROUNDTRIP_CAP,
41};
42pub use qualia_core_db::net::peer::host::{
43    authorised_ipc_stream_exchange, native_ipc_stream_exchange, ControllerIdentity, NativePeer,
44    PeerBuilder, ServiceId, CELL_BYTES_DEFAULT,
45};
46pub use qualia_core_db::net::peer::runtime::{
47    LeaseTable, ReservationHandle, ReservationLedger, ResourceBudget,
48};
49pub use qualia_core_db::net::qdnf::authority::{Plane, PolicyOutcome};
50pub use qualia_core_db::net::qdnf::bearer::{
51    decapsulate_nym, encapsulate_nym, ipc_pair, Bearer, IpcEndpoint, NymSimulatedBearer,
52    NYM_SPHINX_MTU,
53};
54pub use qualia_core_db::net::qdnf::errors::QdnfError;
55pub use qualia_core_db::net::qdnf::session::{SessionBinding, SessionState};
56pub use qualia_core_db::net::qdnf::types::{LinkId, ObservedLocator, OperationId, ScopeEpoch};
57pub use qualia_core_db::net::qdnf::vertical::two_peer_ipc_exchange;