Documentation
¶
Overview ¶
Package computesrc is the source of a compute op, kept beside the wasm it was built from so the admin can show what a `compute://sha256/<digest>` does. The wasm is compiled with javy's `source=omitted`, so without this the authored JS/TS never reaches the chassis at all.
`txco apply` encodes one Bundle per compute it builds from source and uploads it to the hash-addressed file store (filecas). The stack version then carries one fingerprint-only row per compute it uses:
COMPUTES/<wasm digest>.json content "", content_hash = sha256(bundle)
so an unchanged compute costs each new version one small row and its bytes are stored once. The admin reads a bundle only through such a row in the caller's own stack — never by hash alone.
This file is the leaf layer: the reserved-path vocabulary and the bundle codec, with no dependency on stores, so the CLI, the admin API and the control-event applier can import it cheaply.
Index ¶
Constants ¶
const Dir = "COMPUTES"
Dir is the reserved top-level directory for compute-source rows.
const Version = 1
Version is the bundle format version.
Variables ¶
This section is empty.
Functions ¶
func DigestFromPath ¶
DigestFromPath returns the wasm digest a COMPUTES/ row names, or "" when p is not exactly COMPUTES/<64 lowercase hex>.json.