Expand description
Binary hash computation utility for verifying remote compilation correctness.
This module provides deterministic hashing of compiled binaries by focusing on code sections (.text, .rodata) while ignoring non-deterministic metadata like timestamps and paths.
Structs§
- Binary
Hash Result - Result of computing hashes for a binary file.
Enums§
- Canary
Verdict - The verdict of a self-test canary build, distinguishing a healthy worker whose toolchain merely differs from the orchestrator’s (an advisory PASS) from a genuine miscompile or corruption (a FAIL).
Functions§
- binaries_
equivalent - Compare two binaries for functional equivalence.
- binary_
contains_ marker - Check if a binary contains a specific marker string.
- classify_
canary - Classify a self-test canary outcome (bd-784xt). Pure and total, so the verdict logic is unit-tested without a live daemon.
- compute_
binary_ hash - Compute comprehensive hash information for a binary file.