Skip to main content

Module integrity

Module integrity 

Source
Expand description

Build-origin integrity verification and rebrand resistance.

Detects if the binary has been modified by automated rebranding tools (e.g. sed s/lean-ctx/better-ctx/g). The integrity seed is a compile-time constant; its hash is precomputed and embedded. If the seed is altered by a text-replacement tool, the hash will no longer match.

Structs§

IntegrityReport

Functions§

check
is_official_origin
origin_line
verify_integrity