Expand description
Doc writes as unsigned place events (C0 2.2). The engine fills in the
envelope (event id, nonce, commit, HLC, signature) and queues them in
order; CAS-checked field.sets carry the head they were built on, so a
batch can chain edits: each event’s base is the one before it.
Structs§
- Event
Spec - One event to sign and queue.
Functions§
- add_
note - A note about
about(a page or section id);coversare(ref, digest)pairs the note accounts for. - anchor_
from_ value - The anchor of a wire value
anchor_valuewrote;Nonefor an unknown scheme. - anchor_
value - The wire form of an anchor:
{ref, digest, commit, mode?, role?}. - chain
- Chains the bases of a batch: a CAS write on a node another event of the
batch already wrote names that event, so the batch applies in order.
event_idsare the ids the engine gave each event, in batch order. - confirm
- Confirms a page against the checkout: new anchors (CAS), then the
machine verdicts
anchor_state: freshand an emptydrift(exempt). A re-anchor carriesverified_at(ms) in its body: C0 refuses one without it. - create_
page - The events that create
page: the page node, its sections with theirpart_ofedges, its notes with theiraboutedges (to the page) and alinks_toedge per linked page id. Bodies must already be in storage form (crate::links::to_storage). Returns the events and the page id. - edit_
section - Replaces the body of
section. - field_
set - A CAS-checked
field.setoffieldon a node whose head isbase. - insert_
section - Inserts a section with
textafter the section atafter(None: at the front). When no order fits between the neighbours the page is renumbered first, one CASfield.set orderper section. - retract
retractof a node or an edge withreason(2–500 characters).- revise_
page - The events that turn
pageintomarkdown(storage form: links alreadyhive:). Unchanged sections stay; a changed stretch becomes edits of the sections it replaces, then inserts or retractions for the rest. A new#title is a CASfield.set title.links_wantare the page ids the new body links to;links_nowthe livelinks_toedges.
Type Aliases§
- NewId
- Makes ids:
"n"for nodes,"e"for edges (n_…,e_…).