bankai/canonical

Canonical, deterministic byte encoding of a Task for content-addressing.

Determinism contract: identical Task field values MUST produce identical bytes, in every process, on every run. Therefore:

content_hash is intentionally NOT encoded — it is derived from these bytes.

Values

pub fn canonical_bytes(task: types.Task) -> BitArray
Search Document