Skip to main content

Module scroll

Module scroll 

Source
Expand description

Scroll engine — body-shape parser for the Scroll smolweb protocol (https://scroll.mozz.us).

Scroll responses are a binary envelope (sender / signature / timestamp / content-type) wrapped around a body. The envelope side is the host transport’s job — the engine receives the body with the envelope’s content-type already in EngineInput::content_type when known.

Body content-type → delegate:

Until envelope decoding lands in the transport layer, the engine emits a DocumentDiagnostic::UnsupportedConstruct noting that signature verification was not performed; trust stays Unknown. Once the host has a verified envelope it overrides EngineDocument::trust before handing the document to the projection layer.

Structs§

ScrollEngine
Scroll body engine. Owns inner gemtext / markdown engines for body dispatch.

Constants§

ENGINE_ID
Stable engine identifier.