Skip to main content

Module mailbox

Module mailbox 

Source
Expand description

Encrypted mailbox: bounded ciphertext bytes, not length + digest only. Transport never asserts review.

Structs§

InterchangeAdapter
Reviewed interchange adapter. Networking does not encode a medical decision.
Mailbox
Eight-slot pending encrypted mailbox.
MailboxSlot
Encrypted mailbox slot. Bounded ciphertext bytes are retained inline.
OfflineQueue
OfflineSlot
Offline queued ciphertext metadata. Expired packages stay sealed.

Enums§

MailboxState
Mailbox lifecycle. Stored cannot skip to ClinicianReviewed. Delivered is transport and is not ClinicianReviewed.

Constants§

MAILBOX_CIPHERTEXT_BYTES
Inline ciphertext capacity. Equal to STREAM_PAGE_BYTES.
STREAM_PAGE_BYTES
Page size for streaming attachment bytes. Matches replication originals.

Functions§

digest_attachment_pages
Digest bytes in STREAM_PAGE_BYTES pages.
enqueue_offline
Enqueues an offline message.
export_interchange
Exports the mailbox as interchange.
network_asserts_clinical_review
Transport delivery never asserts clinical review or care.
patient_record_associated
Patient-record association is independent of network identity.
release_queued
Release a queued package. Expiry and live Active contact are checked here.
stream_attachment
Stream caller-owned pages and verify the running SHA-384.