Typed Fourcans block verification
Build this native host tool from the same source and protocol features as the canister. The RRT builder does this automatically. For a direct native build from the repository root:
source tools/env.sh
cargo build --manifest-path benches/rrt/Cargo.toml \
--locked --offline --release -p rrt-fourcans-wire-verify
The canonical RRT build copies and hashes the executable in its blockVerifier
record; the benchmark validates that hash before creating PocketIC and selects
the verifier automatically. The tripwire-workload image requires that same
feature on the verifier. Do not attach a verifier built for another codec.
After the measured load, the benchmark sends sampled block payloads to the tool as a JSON array of byte arrays on stdin. It decodes every payload using the real Fourcans action contract, then explicitly compares its deterministic encoded output with the sampled bytes. Production decoders do not perform this host-only check. It prints the number checked or exits unsuccessfully. Independent JavaScript parent hashes and certificate checks remain unchanged. No canister calls or extra rounds occur inside this tool.