Documentation
¶
Overview ¶
Package envelope assembles and reads the stored log-entry bytes: the DSSE-signed receipt envelope whose complete bytes the log's Merkle leaf covers (receipt-schema-v1.md §2).
It was lifted out of internal/tlog in Week 3 so the MCP proxy can build the envelope it signs and spools without linking the appender. That is not just binary weight: one appender process per log is an architectural constraint (Q57), and a capture surface that cannot import the appender cannot accidentally become one. internal/tlog re-exports this package's API unchanged.
Index ¶
Constants ¶
const Version = "behalf.sh/envelope/v1"
Version is the version string stamped on every stored envelope.
Variables ¶
This section is empty.
Functions ¶
func Build ¶
Build assembles the stored log-entry bytes, with the payload spliced verbatim (the span rule, docs/export-format-v1.md §1.2 — the signed bytes are the stored bytes). Assembly is byte concatenation, never re-marshaling of a structure containing the payload.
{"v":"behalf.sh/envelope/v1","payloadType":<t>,"payload":<verbatim>,"sig":{"keyid":<jkt>,"sig":"<b64std>"}}