From ddfd9af8af4d57a94292153d6ec83c7d178a1004 Mon Sep 17 00:00:00 2001 From: igneum-labs <337424239+igneum-labs@users.noreply.github.com> Date: Tue, 6 Oct 2026 16:18:57 +0000 Subject: [PATCH] Counter ASIC 3.0 gates (hash): the G2 job writes its found lines to g2-.found and prints the count and sha256 (no found line in the report, every RESULT line inside the cap, the log and collect glob named); tools/ca3-v4/g2-recheck.sh derives the digest from hash-bound and diffs a found file; trusted on a known-good and a known-bad file Co-Authored-By: Claude Fable 5.1 --- tools/ca3-v4/g2-recheck.sh | 45 +++++++++++++++++++++++++++++++++++ tools/ca3-v4/pc2-v4-gates.ps1 | 26 ++++++++++++++++---- 2 files changed, 66 insertions(+), 5 deletions(-) create mode 100755 tools/ca3-v4/g2-recheck.sh diff --git a/tools/ca3-v4/g2-recheck.sh b/tools/ca3-v4/g2-recheck.sh new file mode 100755 index 000000000..aa6bb73eb --- /dev/null +++ b/tools/ca3-v4/g2-recheck.sh @@ -0,0 +1,45 @@ +#!/usr/bin/env bash +# Counter ASIC 3.0 gate G2, the Mac re-check (6 October 2026). Derives the found-lines file a serve-mode G2 job writes +# (g2-.found: "found g2 " for nonces 0..1023 at prehash 00..01, LF, nonce order) from the Rust +# verifier on the same pack, and compares by sha256 digest. A digest match is 1,024 of 1,024 with no file moved; on a +# mismatch, or when a found file is given, the lines are compared one by one and the differing nonces printed. +# tools/ca3-v4/g2-recheck.sh [--digest ] [--file .found>] +# The pack's seeds come from its program.h (IGNEUM_SEED_BYTES_HEX, IGNEUM_DAY_BYTES_HEX, IGNEUM_ERA_SEED_HEX) and its class +# from IGNEUM_LOAD_CLASS ("-era