Skip to main content

Module record

Module record 

Source
Expand description

A record as it leaves a machine (SPEC_USER_DATA_SYNC_LAYER §3.2): a fixed, signed header in the clear and a sealed body. The header is signed by the origin machine’s key over every field and a digest of the body, so no other member and no relay can write a record “from” a machine. The clear header is a fixed list (CLEAR_FIELDS); a collection’s name and everything descriptive lives in the sealed body.

Structs§

Header
The header of a record.
Record
A record: its header, the origin’s signature over it, and the sealed body (empty for a tombstone).

Enums§

BadRecord
Why a record was not accepted as written.

Constants§

CLEAR_FIELDS
Every field a record carries in the clear, and no other.
MAX_RECORD_BYTES
The most a record’s sealed body may hold (a collection’s own setting may lower it).