Skip to main content

Crate prns_runtime

Crate prns_runtime 

Source
Expand description

Runtime-neutral Personal Reticulum node contracts and manifold kernel

Re-exports§

pub use runtime::node_introspection;

Modules§

crypto
Entropy is always an input. Nothing here generates randomness, so the engine stays deterministic.
engine
identity
Nothing here generates randomness: the 64 bytes ARE the two private keys, used verbatim (no stretching). Their quality is the key’s quality.
interface_discovery
interfaces
manifold
persistence
Memory-first persistence of network-learned state. The engine’s tables are the truth; a host flushes sealed snapshots of them to a PersistedStore and seeds the tables from it at the next boot; destination identities deliberately retain RNS’s historical known_destinations filename and their existing Prns region tag. Config-derived state (held identities, registered destinations, group keys) is never snapshotted — the identity vault and the host recipe re-supply it at boot.
resource_compression
RNS 1.4.2 Resource bz2, the half the pure engine leaves to its host. prns-core carries a resource as an opaque stream and flags it compressed or not; the codec is the host’s, because bz2 is unavailable on the embedded targets the core also serves. The tokio host has no such limit, so it compresses every outgoing resource and inflates every compressed one, and a std node speaks the reference’s wire compression byte-for-byte.
rncp
rnx
routing
runtime
storage
units
wire

Macros§

request_endpoints
Compose route types into a RequestEndpointSet value, e.g., request_endpoints![Health, Echo, Status]. Each arm awaits a concrete handler future, so the set is monomorphized. There’s no boxing and it’sno_std-clean.