Skip to main content

Module originals

Module originals 

Source
Expand description

Signed originals stored separately from derived projections (E06.4).

Large objects are digested in 4096-byte pages with a running SHA-384. Length mismatch is QdnfError::Range. Digest mismatch is QdnfError::Conflict. This module never allocates a whole-graph buffer.

E06.5: QnfExtensionAdopted is false — Q42 envelopes remain. E06.6 process-kill disk tests stay honest via crate::net::peer::replication::crash::disk_backend_crash_injected (false; in-memory crash model, not an OS kill).

Structs§

OriginalObject
Stored original identity: SHA-384 and exact length. Not a projection.

Constants§

QnfExtensionAdopted
E06.5 format decision: QNF extension is not adopted. Q42 envelopes remain.
STREAM_PAGE_BYTES
Page size for streaming original bytes. Not a dataset allocation.

Functions§

projection_replaces_original
Projection digest is never substituted for the original identity.
store_original
Digest bytes in STREAM_PAGE_BYTES pages. out_buf_cap_check is the caller-owned buffer ceiling (not allocated here).
stream_original
Copy source in caller-owned pages, verify expected_len and expected.