omega-principia
This project has not described itself yet.
Brought by drakestapleton
omega-principia / verify_node.sh
| 1 | #!/bin/sh |
| 2 | # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 3 | # verify_node.sh -- 1-command cross-platform OMSC01 (.omp) independent witness node verifier |
| 4 | # Supports: macOS Apple Silicon (arm64), Linux AArch64 (Spark / Pi 5), Linux x86_64 (native & WSL 2) |
| 5 | # Optional: pass --attest to submit a zero-IP cryptographic challenge-response attestation to |
| 6 | # https://interplane.io/strands/witness (or $WITNESS_URL). |
| 7 | set -eu |
| 8 | |
| 9 | ATTEST=0 |
| 10 | for arg in "$@"; do |
| 11 | case "$arg" in |
| 12 | --attest) ATTEST=1 ;; |
| 13 | *) echo "usage: sh verify_node.sh [--attest]" >&2; exit 2 ;; |
| 14 | esac |
| 15 | done |
| 16 | |
| 17 | ROOT="$(cd "$(dirname "$0")" && pwd)" |
| 18 | OS="$(uname -s)" |
| 19 | ARCH="$(uname -m)" |
| 20 | WORK="$(mktemp -d "${TMPDIR:-/tmp}/omp-node-verify.XXXXXX")" |
| 21 | trap 'rm -rf "$WORK"' EXIT |
| 22 | |
| 23 | hash_file() { |
| 24 | if command -v sha256sum >/dev/null 2>&1; then |
| 25 | sha256sum "$1" | awk '{print $1}' |
| 26 | else |
| 27 | shasum -a 256 "$1" | awk '{print $1}' |
| 28 | fi |
| 29 | } |
| 30 | |
| 31 | find_or_fetch_omc() { |
| 32 | if [ -n "${OMC:-}" ] && [ -x "$OMC" ]; then |
| 33 | printf '%s\n' "$OMC" |
| 34 | return 0 |
| 35 | fi |
| 36 | for cand in "$HOME/.local/bin/omc" "$HOME/canon/omega-mv/seed/out/omc" "/usr/local/bin/omc" "$(command -v omc 2>/dev/null || true)"; do |
| 37 | if [ -n "$cand" ] && [ -x "$cand" ]; then |
| 38 | printf '%s\n' "$cand" |
| 39 | return 0 |
| 40 | fi |
| 41 | done |
| 42 | BASE="https://interplane.io/omega/downloads" |
| 43 | if [ "$OS" = "Linux" ] && { [ "$ARCH" = "x86_64" ] || [ "$ARCH" = "amd64" ]; }; then |
| 44 | TAR="omega-compiler-bb1f6ccb-linux-x86_64.tar.gz" |
| 45 | SUM="omega-bb1f6ccb-linux-x86_64.sha256" |
| 46 | elif [ "$OS" = "Linux" ] && { [ "$ARCH" = "aarch64" ] || [ "$ARCH" = "arm64" ]; }; then |
| 47 | TAR="omega-compiler-3086ed3ca106-linux-aarch64.tar.gz" |
| 48 | SUM="omega-3086ed3ca106.sha256" |
| 49 | elif [ "$OS" = "Darwin" ] && [ "$ARCH" = "arm64" ]; then |
| 50 | TAR="omega-compiler-1ad353af8-macos-arm64.tar.gz" |
| 51 | SUM="omega-1ad353af8-macos-arm64.sha256" |
| 52 | else |
| 53 | echo "FAIL: unsupported host $OS/$ARCH and no OMC set" >&2 |
| 54 | exit 2 |
| 55 | fi |
| 56 | curl -fsSL "$BASE/$TAR" -o "$WORK/$TAR" |
| 57 | curl -fsSL "$BASE/$SUM" -o "$WORK/$SUM" |
| 58 | EXP="$(grep "$TAR" "$WORK/$SUM" | awk '{print $1}' | head -n 1)" |
| 59 | GOT="$(hash_file "$WORK/$TAR")" |
| 60 | if [ -z "$EXP" ] || [ "$EXP" != "$GOT" ]; then |
| 61 | echo "FAIL: omc archive SHA-256 mismatch (expected=$EXP got=$GOT)" >&2 |
| 62 | exit 61 |
| 63 | fi |
| 64 | tar -xzf "$WORK/$TAR" -C "$WORK" |
| 65 | BIN="$(find "$WORK" -maxdepth 3 -name omc -type f | head -n 1)" |
| 66 | if [ -z "$BIN" ]; then |
| 67 | echo "FAIL: omc binary not found in $TAR" >&2 |
| 68 | exit 61 |
| 69 | fi |
| 70 | chmod +x "$BIN" |
| 71 | if [ "$OS" = "Darwin" ]; then |
| 72 | codesign -s - -f "$BIN" >/dev/null 2>&1 || true |
| 73 | fi |
| 74 | printf '%s\n' "$BIN" |
| 75 | } |
| 76 | |
| 77 | OMC_BIN="$(find_or_fetch_omc)" |
| 78 | |
| 79 | compile_native() { |
| 80 | src="$1" |
| 81 | out="$2" |
| 82 | if [ "$OS" = "Darwin" ]; then |
| 83 | { printf 'target a64macos\n'; cat "$src"; } | "$OMC_BIN" > "$out" |
| 84 | chmod +x "$out" |
| 85 | codesign -s - -f "$out" >/dev/null 2>&1 |
| 86 | elif [ "$ARCH" = "x86_64" ] || [ "$ARCH" = "amd64" ]; then |
| 87 | { printf 'target x86linux\n'; cat "$src"; } | "$OMC_BIN" > "$out" |
| 88 | chmod +x "$out" |
| 89 | else |
| 90 | "$OMC_BIN" < "$src" > "$out" |
| 91 | chmod +x "$out" |
| 92 | fi |
| 93 | } |
| 94 | |
| 95 | compile_native "$ROOT/src/omsci_core.om" "$WORK/omsci_core" |
| 96 | compile_native "$ROOT/src/omega_pnp.om" "$WORK/omega_pnp" |
| 97 | compile_native "$ROOT/src/omsci_omega_trace.om" "$WORK/omsci_omega_trace" |
| 98 | compile_native "$ROOT/src/omega_lhc.om" "$WORK/omega_lhc" |
| 99 | compile_native "$ROOT/src/omsci_failure_collider.om" "$WORK/omsci_failure_collider" |
| 100 | compile_native "$ROOT/src/omsci_quantum_sorting.om" "$WORK/omsci_quantum_sorting" |
| 101 | compile_native "$ROOT/src/omsci_qcircuit_lookahead.om" "$WORK/omsci_qcircuit_lookahead" |
| 102 | compile_native "$ROOT/src/omsci_horizon_idastar.om" "$WORK/omsci_horizon_idastar" |
| 103 | compile_native "$ROOT/src/omsci_gb10_vfio_collider.om" "$WORK/omsci_gb10_vfio_collider" |
| 104 | compile_native "$ROOT/src/omsci_cern_open_discovery.om" "$WORK/omsci_cern_open_discovery" |
| 105 | compile_native "$ROOT/src/omsci_dfs_hybrid_frontier.om" "$WORK/omsci_dfs_hybrid_frontier" |
| 106 | compile_native "$ROOT/src/omsci_swap_fiber_asymptotic.om" "$WORK/omsci_swap_fiber_asymptotic" |
| 107 | compile_native "$ROOT/src/omsci_sp_t3_quantum_sorting.om" "$WORK/omsci_sp_t3_quantum_sorting" |
| 108 | compile_native "$ROOT/src/omsci_bsd_collider.om" "$WORK/omsci_bsd_collider" |
| 109 | compile_native "$ROOT/src/omsci_bsd_cassels_tate_4selmer.om" "$WORK/omsci_bsd_cassels_tate_4selmer" |
| 110 | compile_native "$ROOT/src/omsci_bsd_noncm_murmuration_harmonics.om" "$WORK/omsci_bsd_noncm_murmuration_harmonics" |
| 111 | compile_native "$ROOT/src/omsci_bsd_cubic_twist_3selmer.om" "$WORK/omsci_bsd_cubic_twist_3selmer" |
| 112 | compile_native "$ROOT/src/omsci_abc_frey_szpiro_bsd_collider.om" "$WORK/omsci_abc_frey_szpiro_bsd_collider" |
| 113 | compile_native "$ROOT/src/omsci_bsd_rank4_higher_derivatives.om" "$WORK/omsci_bsd_rank4_higher_derivatives" |
| 114 | compile_native "$ROOT/src/omsci_discrete_quantum_tur_collider.om" "$WORK/omsci_discrete_quantum_tur_collider" |
| 115 | compile_native "$ROOT/src/omsci_omega_million_uring.om" "$WORK/omsci_omega_million_uring" |
| 116 | compile_native "$ROOT/src/omsci_matmul_universal_lb.om" "$WORK/omsci_matmul_universal_lb" |
| 117 | compile_native "$ROOT/src/omsci_hec_n6_seven_new_facet_orbits.om" "$WORK/omsci_hec_n6_seven_new_facet_orbits" |
| 118 | compile_native "$ROOT/src/omsci_qec_stabilizer_world_records.om" "$WORK/omsci_qec_stabilizer_world_records" |
| 119 | compile_native "$ROOT/src/omsci_matmul_dyadic_world_records.om" "$WORK/omsci_matmul_dyadic_world_records" |
| 120 | compile_native "$ROOT/src/omsci_hec_n7_nine_new_facet_orbits.om" "$WORK/omsci_hec_n7_nine_new_facet_orbits" |
| 121 | compile_native "$ROOT/src/omsci_substrate_intelligence_empirical.om" "$WORK/omsci_substrate_intelligence_empirical" |
| 122 | compile_native "$ROOT/src/omsci_vpvnp_borda_hilbert.om" "$WORK/omsci_vpvnp_borda_hilbert" |
| 123 | compile_native "$ROOT/src/omsci_andw_nine_cwc_world_records.om" "$WORK/omsci_andw_nine_cwc_world_records" |
| 124 | compile_native "$ROOT/src/omsci_ips_boolean_bridge.om" "$WORK/omsci_ips_boolean_bridge" |
| 125 | compile_native "$ROOT/src/omsci_neural_timeless_decoder.om" "$WORK/omsci_neural_timeless_decoder" |
| 126 | compile_native "$ROOT/src/omsci_valiant_rigidity.om" "$WORK/omsci_valiant_rigidity" |
| 127 | compile_native "$ROOT/src/omsci_cat0_mat_contraction.om" "$WORK/omsci_cat0_mat_contraction" |
| 128 | compile_native "$ROOT/src/omsci_riemann_jensen_dbn.om" "$WORK/omsci_riemann_jensen_dbn" |
| 129 | compile_native "$ROOT/src/omsci_smolensky_williams.om" "$WORK/omsci_smolensky_williams" |
| 130 | compile_native "$ROOT/src/omsci_yang_mills_canyon.om" "$WORK/omsci_yang_mills_canyon" |
| 131 | compile_native "$ROOT/src/omsci_hec_n8_five_new_facet_orbits.om" "$WORK/omsci_hec_n8_five_new_facet_orbits" |
| 132 | compile_native "$ROOT/src/omsci_flag_k7_matrix_lifting.om" "$WORK/omsci_flag_k7_matrix_lifting" |
| 133 | compile_native "$ROOT/src/omsci_navier_stokes_dyadic_bkm.om" "$WORK/omsci_navier_stokes_dyadic_bkm" |
| 134 | compile_native "$ROOT/src/omsci_yang_mills_su3.om" "$WORK/omsci_yang_mills_su3" |
| 135 | compile_native "$ROOT/src/omsci_gct_kronecker_spd.om" "$WORK/omsci_gct_kronecker_spd" |
| 136 | compile_native "$ROOT/src/omsci_bsd_higher_rank.om" "$WORK/omsci_bsd_higher_rank" |
| 137 | compile_native "$ROOT/src/omsci_yang_mills_rg_transfer.om" "$WORK/omsci_yang_mills_rg_transfer" |
| 138 | compile_native "$ROOT/src/omsci_monotone_kw_razborov_tardos.om" "$WORK/omsci_monotone_kw_razborov_tardos" |
| 139 | compile_native "$ROOT/src/omsci_autocorr_sidon_sdp.om" "$WORK/omsci_autocorr_sidon_sdp" |
| 140 | compile_native "$ROOT/src/omsci_hodge_algebraic_cycles.om" "$WORK/omsci_hodge_algebraic_cycles" |
| 141 | compile_native "$ROOT/src/omsci_yang_mills_uv_af.om" "$WORK/omsci_yang_mills_uv_af" |
| 142 | compile_native "$ROOT/src/omsci_pvsnp_algebrization_mcsp.om" "$WORK/omsci_pvsnp_algebrization_mcsp" |
| 143 | compile_native "$ROOT/src/omsci_abc_szpiro_ramanujan.om" "$WORK/omsci_abc_szpiro_ramanujan" |
| 144 | compile_native "$ROOT/src/omsci_pvsnp_proof_complexity_tfnp.om" "$WORK/omsci_pvsnp_proof_complexity_tfnp" |
| 145 | compile_native "$ROOT/src/omsci_collatz_syracuse_steiner.om" "$WORK/omsci_collatz_syracuse_steiner" |
| 146 | compile_native "$ROOT/src/omsci_yang_mills_bpst.om" "$WORK/omsci_yang_mills_bpst" |
| 147 | compile_native "$ROOT/src/omsci_matmul_tensor_rank_lb.om" "$WORK/omsci_matmul_tensor_rank_lb" |
| 148 | compile_native "$ROOT/src/omsci_yang_mills_closed_surface.om" "$WORK/omsci_yang_mills_closed_surface" |
| 149 | compile_native "$ROOT/src/omsci_riemann_jensen_d456.om" "$WORK/omsci_riemann_jensen_d456" |
| 150 | compile_native "$ROOT/src/omsci_yang_mills_su3_closed_surface.om" "$WORK/omsci_yang_mills_su3_closed_surface" |
| 151 | compile_native "$ROOT/src/omsci_ns_high_shell.om" "$WORK/omsci_ns_high_shell" |
| 152 | compile_native "$ROOT/src/omsci_bmc_exact_cert.om" "$WORK/omsci_bmc_exact_cert" |
| 153 | compile_native "$ROOT/src/omsci_omega_singularity_fabric.om" "$WORK/omsci_omega_singularity_fabric" |
| 154 | compile_native "$ROOT/src/omsci_trillion_droid_om2_fabric.om" "$WORK/omsci_trillion_droid_om2_fabric" |
| 155 | compile_native "$ROOT/src/omsci_hec_n8_deep_frontier.om" "$WORK/omsci_hec_n8_deep_frontier" |
| 156 | compile_native "$ROOT/src/omsci_fmm_zt_additions_collider.om" "$WORK/omsci_fmm_zt_additions_collider" |
| 157 | compile_native "$ROOT/src/omsci_brouwer_cwc_d12_world_records.om" "$WORK/omsci_brouwer_cwc_d12_world_records" |
| 158 | compile_native "$ROOT/src/omsci_signed_difference_sets_29_world_records.om" "$WORK/omsci_signed_difference_sets_29_world_records" |
| 159 | compile_native "$ROOT/src/omsci_fmm_zt_additions_wave2_collider.om" "$WORK/omsci_fmm_zt_additions_wave2_collider" |
| 160 | compile_native "$ROOT/src/omsci_omzk01_goldilocks_fp2_stark.om" "$WORK/omsci_omzk01_goldilocks_fp2_stark" |
| 161 | compile_native "$ROOT/src/omsci_labs_17_world_records_n228_268.om" "$WORK/omsci_labs_17_world_records_n228_268" |
| 162 | compile_native "$ROOT/src/omsci_labs_16_world_records_n270_300.om" "$WORK/omsci_labs_16_world_records_n270_300" |
| 163 | compile_native "$ROOT/src/omsci_omfhe01_rlwe_bfv_n4096_depth2.om" "$WORK/omsci_omfhe01_rlwe_bfv_n4096_depth2" |
| 164 | compile_native "$ROOT/src/omsci_butson_hadamard_bh46_bh74_6.om" "$WORK/omsci_butson_hadamard_bh46_bh74_6" |
| 165 | compile_native "$ROOT/src/omsci_labs_14_world_records_n318_391.om" "$WORK/omsci_labs_14_world_records_n318_391" |
| 166 | compile_native "$ROOT/src/omsci_omfhe02_rlwe_bfv_n8192_depth4.om" "$WORK/omsci_omfhe02_rlwe_bfv_n8192_depth4" |
| 167 | compile_native "$ROOT/src/omsci_labs_10_world_records_n204_537.om" "$WORK/omsci_labs_10_world_records_n204_537" |
| 168 | compile_native "$ROOT/src/omsci_omzk03_labs234_fp2_stark.om" "$WORK/omsci_omzk03_labs234_fp2_stark" |
| 169 | compile_native "$ROOT/src/omsci_butson_hadamard_bh122_6.om" "$WORK/omsci_butson_hadamard_bh122_6" |
| 170 | compile_native "$ROOT/src/omsci_labs_8_world_records_n235_442.om" "$WORK/omsci_labs_8_world_records_n235_442" |
| 171 | compile_native "$ROOT/src/omsci_omzk04_bh46_fp2_stark.om" "$WORK/omsci_omzk04_bh46_fp2_stark" |
| 172 | compile_native "$ROOT/src/omsci_omfhe03_labs235_depth2_bfv.om" "$WORK/omsci_omfhe03_labs235_depth2_bfv" |
| 173 | compile_native "$ROOT/src/omsci_can_ca333_t4_k24_v3_world_record.om" "$WORK/omsci_can_ca333_t4_k24_v3_world_record" |
| 174 | compile_native "$ROOT/src/omsci_labs_7_world_records_n528_586.om" "$WORK/omsci_labs_7_world_records_n528_586" |
| 175 | compile_native "$ROOT/src/omsci_omzk05_bh122_fp2_stark.om" "$WORK/omsci_omzk05_bh122_fp2_stark" |
| 176 | compile_native "$ROOT/src/omsci_omzk06_can333_fp2_stark.om" "$WORK/omsci_omzk06_can333_fp2_stark" |
| 177 | compile_native "$ROOT/src/omsci_omfhe04_rlwe_bfv_n16384_depth6.om" "$WORK/omsci_omfhe04_rlwe_bfv_n16384_depth6" |
| 178 | compile_native "$ROOT/src/omsci_butson_hadamard_bh202_6.om" "$WORK/omsci_butson_hadamard_bh202_6" |
| 179 | compile_native "$ROOT/src/omsci_butson_hadamard_bh110_bh146_6.om" "$WORK/omsci_butson_hadamard_bh110_bh146_6" |
| 180 | compile_native "$ROOT/src/omsci_can_ca270_t4_k18_v3_world_record.om" "$WORK/omsci_can_ca270_t4_k18_v3_world_record" |
| 181 | compile_native "$ROOT/src/omsci_omzk07_labs586_fp2_stark.om" "$WORK/omsci_omzk07_labs586_fp2_stark" |
| 182 | compile_native "$ROOT/src/omsci_integer_welch_superposition_collider.om" "$WORK/omsci_integer_welch_superposition_collider" |
| 183 | |
| 184 | "$WORK/omsci_core" < /dev/null >/dev/null |
| 185 | |
| 186 | CAPSULES=" |
| 187 | $ROOT/paper/inaugural.omp |
| 188 | $ROOT/paper/vpvnp_audit.omp |
| 189 | $ROOT/paper/silicon_collider.omp |
| 190 | $ROOT/paper/pnp_witt_frontier.omp |
| 191 | $ROOT/paper/pnp_quadrillion_cumulant.omp |
| 192 | $ROOT/paper/omega_principia.omp |
| 193 | $ROOT/paper/continuation_collider.omp |
| 194 | $ROOT/paper/zero_c_edge_tls13.omp |
| 195 | $ROOT/paper/driverless_smmu_vfio_gb10.omp |
| 196 | $ROOT/paper/non_english_om2_droids.omp |
| 197 | $ROOT/paper/wave_particle_loop.omp |
| 198 | $ROOT/paper/bell_compression_collider.omp |
| 199 | $ROOT/paper/clockfree_layers.omp |
| 200 | $ROOT/paper/omega_trace_debugger.omp |
| 201 | $ROOT/paper/oz_mrmoe.omp |
| 202 | $ROOT/paper/omega_trace.omp |
| 203 | $ROOT/paper/clockfree_sorting_collider.omp |
| 204 | $ROOT/paper/omega_pnp_debugger.omp |
| 205 | $ROOT/paper/photon_pair_collider.omp |
| 206 | $ROOT/paper/causal_lightcone_entropy.omp |
| 207 | $ROOT/paper/lhc_silicon_collider.omp |
| 208 | $ROOT/paper/point_of_failure_collider.omp |
| 209 | $ROOT/paper/super_shannon_quantum_sorting.omp |
| 210 | $ROOT/paper/quantum_circuit_decoherence_lookahead.omp |
| 211 | $ROOT/paper/horizon_lookahead_admissible_idastar.omp |
| 212 | $ROOT/paper/gb10_vfio_silicon_collider.omp |
| 213 | $ROOT/paper/cern_open_discovery.omp |
| 214 | $ROOT/paper/super_shannon_dfs_hybrid_frontier.omp |
| 215 | $ROOT/paper/su2_4d_lattice.omp |
| 216 | $ROOT/paper/swap_fiber_asymptotic_quantum_sorting.omp |
| 217 | $ROOT/paper/sp_cancellation_t3_quantum_sorting.omp |
| 218 | $ROOT/paper/bsd_collider.omp |
| 219 | $ROOT/paper/bsd_cassels_tate_4selmer.omp |
| 220 | $ROOT/paper/bsd_noncm_murmuration_harmonics.omp |
| 221 | $ROOT/paper/bsd_cubic_twist_3selmer.omp |
| 222 | $ROOT/paper/abc_frey_szpiro_bsd_collider.omp |
| 223 | $ROOT/paper/bsd_rank4_higher_derivatives.omp |
| 224 | $ROOT/paper/discrete_quantum_tur_collider.omp |
| 225 | $ROOT/paper/integer_welch_superposition_collider.omp |
| 226 | $ROOT/paper/matmul_universal_lb.omp |
| 227 | $ROOT/paper/hec_n6_seven_new_facet_orbits.omp |
| 228 | $ROOT/paper/qec_stabilizer_world_records.omp |
| 229 | $ROOT/paper/matmul_dyadic_world_records.omp |
| 230 | $ROOT/paper/hec_n7_nine_new_facet_orbits.omp |
| 231 | $ROOT/paper/substrate_intelligence_empirical_collider.omp |
| 232 | $ROOT/paper/vpvnp_borda_hilbert_frontier.omp |
| 233 | $ROOT/paper/andw_nine_cwc_world_records.omp |
| 234 | $ROOT/paper/ips_boolean_bridge.omp |
| 235 | $ROOT/paper/neural_timeless_om2_code_decoder.omp |
| 236 | $ROOT/paper/valiant_rigidity_barriers.omp |
| 237 | $ROOT/paper/cat0_metric_frontier.omp |
| 238 | $ROOT/paper/riemann_jensen_debruijn_newman_collider.omp |
| 239 | $ROOT/paper/smolensky_williams_ac0p.omp |
| 240 | $ROOT/paper/yang_mills_crossover_canyon_collider.omp |
| 241 | $ROOT/paper/hec_n8_five_new_facet_orbits.omp |
| 242 | $ROOT/paper/flag_k7_matrix_lifting.omp |
| 243 | $ROOT/paper/navier_stokes_dyadic_bkm_collider.omp |
| 244 | $ROOT/paper/yang_mills_su3_mass_gap_collider.omp |
| 245 | $ROOT/paper/gct_kronecker_spd_collider.omp |
| 246 | $ROOT/paper/bsd_higher_rank_regulator_collider.omp |
| 247 | $ROOT/paper/yang_mills_multi_scale_rg_transfer_collider.omp |
| 248 | $ROOT/paper/monotone_kw_razborov_tardos_collider.omp |
| 249 | $ROOT/paper/autocorr_sidon_sector_sdp.omp |
| 250 | $ROOT/paper/hodge_algebraic_cycles_collider.omp |
| 251 | $ROOT/paper/yang_mills_uv_asymptotic_freedom_collider.omp |
| 252 | $ROOT/paper/pvsnp_algebrization_mcsp_barriers_collider.omp |
| 253 | $ROOT/paper/abc_szpiro_ramanujan_satotate_collider.omp |
| 254 | $ROOT/paper/pvsnp_proof_complexity_tfnp_collider.omp |
| 255 | $ROOT/paper/collatz_syracuse_steiner_cycle_collider.omp |
| 256 | $ROOT/paper/yang_mills_bpst_instanton_bogomolny_collider.omp |
| 257 | $ROOT/paper/matmul_tensor_rank_and_lower_bound_breakthrough.omp |
| 258 | $ROOT/paper/yang_mills_4d_closed_surface_canyon_breakthrough.omp |
| 259 | $ROOT/paper/riemann_jensen_d4_d5_d6_high_shift_cert.omp |
| 260 | $ROOT/paper/yang_mills_4d_su3_closed_surface_canyon_breakthrough.omp |
| 261 | $ROOT/paper/navier_stokes_high_shell_blowup_cert.omp |
| 262 | $ROOT/paper/boolean_multiplicative_complexity_exact_cert.omp |
| 263 | $ROOT/paper/omega_singularity_fabric.omp |
| 264 | $ROOT/paper/trillion_droid_om2_fabric.omp |
| 265 | $ROOT/paper/hec_n8_deep_frontier_and_n9_first_orbit.omp |
| 266 | $ROOT/paper/fmm_zt_additions_collider.omp |
| 267 | $ROOT/paper/brouwer_cwc_d12_world_records.omp |
| 268 | $ROOT/paper/signed_difference_sets_29_world_records.omp |
| 269 | $ROOT/paper/fmm_zt_additions_wave2_collider.omp |
| 270 | $ROOT/paper/omzk01_goldilocks_fp2_stark.omp |
| 271 | $ROOT/paper/labs_17_world_records_n228_268.omp |
| 272 | $ROOT/paper/labs_16_world_records_n270_300.omp |
| 273 | $ROOT/paper/omfhe01_rlwe_bfv_n4096_depth2.omp |
| 274 | $ROOT/paper/butson_hadamard_bh46_bh74_6.omp |
| 275 | $ROOT/paper/labs_14_world_records_n318_391.omp |
| 276 | $ROOT/paper/omfhe02_rlwe_bfv_n8192_depth4.omp |
| 277 | $ROOT/paper/labs_10_world_records_n204_537.omp |
| 278 | $ROOT/paper/omzk03_labs234_fp2_stark.omp |
| 279 | $ROOT/paper/butson_hadamard_bh122_6.omp |
| 280 | $ROOT/paper/labs_8_world_records_n235_442.omp |
| 281 | $ROOT/paper/omzk04_bh46_fp2_stark.omp |
| 282 | $ROOT/paper/omfhe03_labs235_depth2_bfv.omp |
| 283 | $ROOT/paper/can_ca333_t4_k24_v3_world_record.omp |
| 284 | $ROOT/paper/labs_7_world_records_n528_586.omp |
| 285 | $ROOT/paper/omzk05_bh122_fp2_stark.omp |
| 286 | $ROOT/paper/omzk06_can333_fp2_stark.omp |
| 287 | $ROOT/paper/omfhe04_rlwe_bfv_n16384_depth6.omp |
| 288 | $ROOT/paper/butson_hadamard_bh202_6.omp |
| 289 | $ROOT/paper/butson_hadamard_bh110_bh146_6.omp |
| 290 | $ROOT/paper/can_ca270_t4_k18_v3_world_record.omp |
| 291 | $ROOT/paper/omzk07_labs586_fp2_stark.omp |
| 292 | " |
| 293 | |
| 294 | CNT=0 |
| 295 | : > "$WORK/all_capsules.bin" |
| 296 | for c in $CAPSULES; do |
| 297 | if [ ! -f "$c" ]; then |
| 298 | echo "FAIL: missing capsule $c" >&2 |
| 299 | exit 61 |
| 300 | fi |
| 301 | SZ="$(wc -c < "$c" | tr -d ' ')" |
| 302 | if [ "$SZ" -ne 672 ]; then |
| 303 | echo "FAIL: capsule $c size=$SZ (expected 672)" >&2 |
| 304 | exit 61 |
| 305 | fi |
| 306 | { printf 'VERI'; cat "$c"; } | "$WORK/omsci_core" >/dev/null |
| 307 | cat "$c" >> "$WORK/all_capsules.bin" |
| 308 | CNT=$((CNT + 1)) |
| 309 | done |
| 310 | |
| 311 | # 1-bit tamper negative control on omega_pnp_debugger.omp -> must exit 61 |
| 312 | cp "$ROOT/paper/omega_pnp_debugger.omp" "$WORK/tamper.omp" |
| 313 | dd if="$WORK/tamper.omp" bs=1 count=1 skip=600 2>/dev/null | od -An -tu1 | awk '{printf "%c", ($1 + 1) % 256}' | dd of="$WORK/tamper.omp" bs=1 count=1 seek=600 conv=notrunc 2>/dev/null |
| 314 | set +e |
| 315 | { printf 'VERI'; cat "$WORK/tamper.omp"; } | "$WORK/omsci_core" >/dev/null 2>&1 |
| 316 | TAMPER_RC="$?" |
| 317 | set -e |
| 318 | if [ "$TAMPER_RC" -lt 61 ] || [ "$TAMPER_RC" -gt 66 ]; then |
| 319 | echo "FAIL: 1-bit tamper did not return fail-closed rc 61..66 (got $TAMPER_RC)" >&2 |
| 320 | exit 1 |
| 321 | fi |
| 322 | |
| 323 | # Live host-ISA regeneration bit-exact parity checks |
| 324 | printf 'CAPS' | "$WORK/omega_pnp" > "$WORK/regen_pnp.omp" |
| 325 | cmp -s "$ROOT/paper/omega_pnp_debugger.omp" "$WORK/regen_pnp.omp" |
| 326 | printf 'CAPS' | "$WORK/omsci_omega_trace" > "$WORK/regen_trace.omp" |
| 327 | cmp -s "$ROOT/paper/omega_trace.omp" "$WORK/regen_trace.omp" |
| 328 | printf 'CAPS' | "$WORK/omega_lhc" > "$WORK/regen_lhc.omp" |
| 329 | cmp -s "$ROOT/paper/lhc_silicon_collider.omp" "$WORK/regen_lhc.omp" |
| 330 | printf 'CAPS' | "$WORK/omsci_failure_collider" > "$WORK/regen_failure.omp" |
| 331 | cmp -s "$ROOT/paper/point_of_failure_collider.omp" "$WORK/regen_failure.omp" |
| 332 | printf 'CAPS' | "$WORK/omsci_quantum_sorting" > "$WORK/regen_quantum.omp" |
| 333 | cmp -s "$ROOT/paper/super_shannon_quantum_sorting.omp" "$WORK/regen_quantum.omp" |
| 334 | printf 'CAPS' | "$WORK/omsci_qcircuit_lookahead" > "$WORK/regen_qcircuit.omp" |
| 335 | cmp -s "$ROOT/paper/quantum_circuit_decoherence_lookahead.omp" "$WORK/regen_qcircuit.omp" |
| 336 | printf 'CAPS' | "$WORK/omsci_horizon_idastar" > "$WORK/regen_horizon.omp" |
| 337 | cmp -s "$ROOT/paper/horizon_lookahead_admissible_idastar.omp" "$WORK/regen_horizon.omp" |
| 338 | printf 'CAPS' | "$WORK/omsci_gb10_vfio_collider" > "$WORK/regen_gb10_vfio.omp" |
| 339 | cmp -s "$ROOT/paper/gb10_vfio_silicon_collider.omp" "$WORK/regen_gb10_vfio.omp" |
| 340 | printf 'CAPS' | "$WORK/omsci_cern_open_discovery" > "$WORK/regen_cern_open.omp" |
| 341 | cmp -s "$ROOT/paper/cern_open_discovery.omp" "$WORK/regen_cern_open.omp" |
| 342 | printf 'CAPS' | "$WORK/omsci_dfs_hybrid_frontier" > "$WORK/regen_dfs_hybrid.omp" |
| 343 | cmp -s "$ROOT/paper/super_shannon_dfs_hybrid_frontier.omp" "$WORK/regen_dfs_hybrid.omp" |
| 344 | printf 'CAPS' | "$WORK/omsci_swap_fiber_asymptotic" > "$WORK/regen_swap_fiber.omp" |
| 345 | cmp -s "$ROOT/paper/swap_fiber_asymptotic_quantum_sorting.omp" "$WORK/regen_swap_fiber.omp" |
| 346 | printf 'CAPS' | "$WORK/omsci_sp_t3_quantum_sorting" > "$WORK/regen_sp_t3.omp" |
| 347 | cmp -s "$ROOT/paper/sp_cancellation_t3_quantum_sorting.omp" "$WORK/regen_sp_t3.omp" |
| 348 | "$WORK/omsci_bsd_collider" "$WORK/regen_bsd.omp" >/dev/null |
| 349 | cmp -s "$ROOT/paper/bsd_collider.omp" "$WORK/regen_bsd.omp" |
| 350 | "$WORK/omsci_bsd_cassels_tate_4selmer" "$WORK/regen_ct4s.omp" >/dev/null |
| 351 | cmp -s "$ROOT/paper/bsd_cassels_tate_4selmer.omp" "$WORK/regen_ct4s.omp" |
| 352 | "$WORK/omsci_bsd_noncm_murmuration_harmonics" "$WORK/regen_noncm.omp" >/dev/null |
| 353 | cmp -s "$ROOT/paper/bsd_noncm_murmuration_harmonics.omp" "$WORK/regen_noncm.omp" |
| 354 | "$WORK/omsci_bsd_cubic_twist_3selmer" "$WORK/regen_cubic3s.omp" >/dev/null |
| 355 | cmp -s "$ROOT/paper/bsd_cubic_twist_3selmer.omp" "$WORK/regen_cubic3s.omp" |
| 356 | "$WORK/omsci_abc_frey_szpiro_bsd_collider" "$WORK/regen_abc_frey.omp" >/dev/null |
| 357 | cmp -s "$ROOT/paper/abc_frey_szpiro_bsd_collider.omp" "$WORK/regen_abc_frey.omp" |
| 358 | "$WORK/omsci_bsd_rank4_higher_derivatives" "$WORK/regen_bsd_rank4.omp" >/dev/null |
| 359 | cmp -s "$ROOT/paper/bsd_rank4_higher_derivatives.omp" "$WORK/regen_bsd_rank4.omp" |
| 360 | printf 'CAPS' | "$WORK/omsci_discrete_quantum_tur_collider" > "$WORK/regen_dqt.omp" |
| 361 | cmp -s "$ROOT/paper/discrete_quantum_tur_collider.omp" "$WORK/regen_dqt.omp" |
| 362 | printf 'CAPS' | "$WORK/omsci_omega_million_uring" > "$WORK/regen_om_uring.omp" |
| 363 | cmp -s "$ROOT/paper/omega_million_uring_collider.omp" "$WORK/regen_om_uring.omp" |
| 364 | printf 'CAPS' | "$WORK/omsci_matmul_universal_lb" > "$WORK/regen_matmul_lb.omp" |
| 365 | cmp -s "$ROOT/paper/matmul_universal_lb.omp" "$WORK/regen_matmul_lb.omp" |
| 366 | printf 'CAPS' | "$WORK/omsci_hec_n6_seven_new_facet_orbits" > "$WORK/regen_hec6.omp" |
| 367 | cmp -s "$ROOT/paper/hec_n6_seven_new_facet_orbits.omp" "$WORK/regen_hec6.omp" |
| 368 | printf 'CAPS' | "$WORK/omsci_qec_stabilizer_world_records" > "$WORK/regen_qec.omp" |
| 369 | cmp -s "$ROOT/paper/qec_stabilizer_world_records.omp" "$WORK/regen_qec.omp" |
| 370 | printf 'CAPS' | "$WORK/omsci_matmul_dyadic_world_records" > "$WORK/regen_matmul_ub.omp" |
| 371 | cmp -s "$ROOT/paper/matmul_dyadic_world_records.omp" "$WORK/regen_matmul_ub.omp" |
| 372 | printf 'CAPS' | "$WORK/omsci_hec_n7_nine_new_facet_orbits" > "$WORK/regen_hec7.omp" |
| 373 | cmp -s "$ROOT/paper/hec_n7_nine_new_facet_orbits.omp" "$WORK/regen_hec7.omp" |
| 374 | printf 'CAPS' | "$WORK/omsci_substrate_intelligence_empirical" > "$WORK/regen_sub.omp" |
| 375 | cmp -s "$ROOT/paper/substrate_intelligence_empirical_collider.omp" "$WORK/regen_sub.omp" |
| 376 | printf 'CAPS' | "$WORK/omsci_vpvnp_borda_hilbert" > "$WORK/regen_borda.omp" |
| 377 | cmp -s "$ROOT/paper/vpvnp_borda_hilbert_frontier.omp" "$WORK/regen_borda.omp" |
| 378 | printf 'CAPS' | "$WORK/omsci_andw_nine_cwc_world_records" > "$WORK/regen_andw.omp" |
| 379 | cmp -s "$ROOT/paper/andw_nine_cwc_world_records.omp" "$WORK/regen_andw.omp" |
| 380 | printf 'CAPS' | "$WORK/omsci_ips_boolean_bridge" > "$WORK/regen_ips.omp" |
| 381 | cmp -s "$ROOT/paper/ips_boolean_bridge.omp" "$WORK/regen_ips.omp" |
| 382 | "$WORK/omsci_neural_timeless_decoder" </dev/null >/dev/null 3>"$WORK/regen_neural80.omp" |
| 383 | cmp -s "$ROOT/paper/neural_timeless_om2_code_decoder.omp" "$WORK/regen_neural80.omp" |
| 384 | printf 'CAPS' | "$WORK/omsci_valiant_rigidity" > "$WORK/regen_valiant.omp" |
| 385 | cmp -s "$ROOT/paper/valiant_rigidity_barriers.omp" "$WORK/regen_valiant.omp" |
| 386 | printf 'CAPS' | "$WORK/omsci_cat0_mat_contraction" > "$WORK/regen_cat0.omp" |
| 387 | cmp -s "$ROOT/paper/cat0_metric_frontier.omp" "$WORK/regen_cat0.omp" |
| 388 | printf 'CAPS' | "$WORK/omsci_riemann_jensen_dbn" > "$WORK/regen_riemann.omp" |
| 389 | cmp -s "$ROOT/paper/riemann_jensen_debruijn_newman_collider.omp" "$WORK/regen_riemann.omp" |
| 390 | printf 'CAPS' | "$WORK/omsci_smolensky_williams" > "$WORK/regen_smol.omp" |
| 391 | cmp -s "$ROOT/paper/smolensky_williams_ac0p.omp" "$WORK/regen_smol.omp" |
| 392 | printf 'CAPS' | "$WORK/omsci_yang_mills_canyon" > "$WORK/regen_ymc.omp" |
| 393 | cmp -s "$ROOT/paper/yang_mills_crossover_canyon_collider.omp" "$WORK/regen_ymc.omp" |
| 394 | printf 'CAPS' | "$WORK/omsci_hec_n8_five_new_facet_orbits" > "$WORK/regen_hec8.omp" |
| 395 | cmp -s "$ROOT/paper/hec_n8_five_new_facet_orbits.omp" "$WORK/regen_hec8.omp" |
| 396 | printf 'CAPS' | "$WORK/omsci_flag_k7_matrix_lifting" > "$WORK/regen_flag7.omp" |
| 397 | cmp -s "$ROOT/paper/flag_k7_matrix_lifting.omp" "$WORK/regen_flag7.omp" |
| 398 | printf 'CAPS' | "$WORK/omsci_navier_stokes_dyadic_bkm" > "$WORK/regen_nsbkm.omp" |
| 399 | cmp -s "$ROOT/paper/navier_stokes_dyadic_bkm_collider.omp" "$WORK/regen_nsbkm.omp" |
| 400 | printf 'CAPS' | "$WORK/omsci_yang_mills_su3" > "$WORK/regen_ymsu3.omp" |
| 401 | cmp -s "$ROOT/paper/yang_mills_su3_mass_gap_collider.omp" "$WORK/regen_ymsu3.omp" |
| 402 | printf 'CAPS' | "$WORK/omsci_gct_kronecker_spd" > "$WORK/regen_gct.omp" |
| 403 | cmp -s "$ROOT/paper/gct_kronecker_spd_collider.omp" "$WORK/regen_gct.omp" |
| 404 | printf 'CAPS' | "$WORK/omsci_bsd_higher_rank" > "$WORK/regen_bsd5.omp" |
| 405 | cmp -s "$ROOT/paper/bsd_higher_rank_regulator_collider.omp" "$WORK/regen_bsd5.omp" |
| 406 | printf 'CAPS' | "$WORK/omsci_yang_mills_rg_transfer" > "$WORK/regen_ymrg.omp" |
| 407 | cmp -s "$ROOT/paper/yang_mills_multi_scale_rg_transfer_collider.omp" "$WORK/regen_ymrg.omp" |
| 408 | printf 'CAPS' | "$WORK/omsci_monotone_kw_razborov_tardos" > "$WORK/regen_mkw.omp" |
| 409 | cmp -s "$ROOT/paper/monotone_kw_razborov_tardos_collider.omp" "$WORK/regen_mkw.omp" |
| 410 | printf 'CAPS' | "$WORK/omsci_autocorr_sidon_sdp" > "$WORK/regen_autocorr.omp" |
| 411 | cmp -s "$ROOT/paper/autocorr_sidon_sector_sdp.omp" "$WORK/regen_autocorr.omp" |
| 412 | printf 'CAPS' | "$WORK/omsci_hodge_algebraic_cycles" > "$WORK/regen_hodge.omp" |
| 413 | cmp -s "$ROOT/paper/hodge_algebraic_cycles_collider.omp" "$WORK/regen_hodge.omp" |
| 414 | printf 'CAPS' | "$WORK/omsci_yang_mills_uv_af" > "$WORK/regen_ymuv.omp" |
| 415 | cmp -s "$ROOT/paper/yang_mills_uv_asymptotic_freedom_collider.omp" "$WORK/regen_ymuv.omp" |
| 416 | printf 'CAPS' | "$WORK/omsci_pvsnp_algebrization_mcsp" > "$WORK/regen_alg.omp" |
| 417 | cmp -s "$ROOT/paper/pvsnp_algebrization_mcsp_barriers_collider.omp" "$WORK/regen_alg.omp" |
| 418 | printf 'CAPS' | "$WORK/omsci_abc_szpiro_ramanujan" > "$WORK/regen_abc.omp" |
| 419 | cmp -s "$ROOT/paper/abc_szpiro_ramanujan_satotate_collider.omp" "$WORK/regen_abc.omp" |
| 420 | printf 'CAPS' | "$WORK/omsci_pvsnp_proof_complexity_tfnp" > "$WORK/regen_tfnp.omp" |
| 421 | cmp -s "$ROOT/paper/pvsnp_proof_complexity_tfnp_collider.omp" "$WORK/regen_tfnp.omp" |
| 422 | printf 'CAPS' | "$WORK/omsci_collatz_syracuse_steiner" > "$WORK/regen_collatz.omp" |
| 423 | cmp -s "$ROOT/paper/collatz_syracuse_steiner_cycle_collider.omp" "$WORK/regen_collatz.omp" |
| 424 | printf 'CAPS' | "$WORK/omsci_yang_mills_bpst" > "$WORK/regen_ymbpst.omp" |
| 425 | cmp -s "$ROOT/paper/yang_mills_bpst_instanton_bogomolny_collider.omp" "$WORK/regen_ymbpst.omp" |
| 426 | printf 'CAPS' | "$WORK/omsci_matmul_tensor_rank_lb" > "$WORK/regen_matmul_lb2.omp" |
| 427 | cmp -s "$ROOT/paper/matmul_tensor_rank_and_lower_bound_breakthrough.omp" "$WORK/regen_matmul_lb2.omp" |
| 428 | printf 'CAPS' | "$WORK/omsci_yang_mills_closed_surface" > "$WORK/regen_ymcs.omp" |
| 429 | cmp -s "$ROOT/paper/yang_mills_4d_closed_surface_canyon_breakthrough.omp" "$WORK/regen_ymcs.omp" |
| 430 | printf 'CAPS' | "$WORK/omsci_riemann_jensen_d456" > "$WORK/regen_rj456.omp" |
| 431 | cmp -s "$ROOT/paper/riemann_jensen_d4_d5_d6_high_shift_cert.omp" "$WORK/regen_rj456.omp" |
| 432 | printf 'CAPS' | "$WORK/omsci_yang_mills_su3_closed_surface" > "$WORK/regen_ym_su3_cs.omp" |
| 433 | cmp -s "$ROOT/paper/yang_mills_4d_su3_closed_surface_canyon_breakthrough.omp" "$WORK/regen_ym_su3_cs.omp" |
| 434 | printf 'CAPS' | "$WORK/omsci_ns_high_shell" > "$WORK/regen_ns_hs.omp" |
| 435 | cmp -s "$ROOT/paper/navier_stokes_high_shell_blowup_cert.omp" "$WORK/regen_ns_hs.omp" |
| 436 | printf 'CAPS' | "$WORK/omsci_bmc_exact_cert" > "$WORK/regen_bmc.omp" |
| 437 | cmp -s "$ROOT/paper/boolean_multiplicative_complexity_exact_cert.omp" "$WORK/regen_bmc.omp" |
| 438 | printf 'CAPS' | "$WORK/omsci_omega_singularity_fabric" > "$WORK/regen_osf.omp" |
| 439 | cmp -s "$ROOT/paper/omega_singularity_fabric.omp" "$WORK/regen_osf.omp" |
| 440 | printf 'CAPS' | "$WORK/omsci_trillion_droid_om2_fabric" > "$WORK/regen_tdf.omp" |
| 441 | cmp -s "$ROOT/paper/trillion_droid_om2_fabric.omp" "$WORK/regen_tdf.omp" |
| 442 | printf 'CAPS' | "$WORK/omsci_hec_n8_deep_frontier" > "$WORK/regen_hecd.omp" |
| 443 | cmp -s "$ROOT/paper/hec_n8_deep_frontier_and_n9_first_orbit.omp" "$WORK/regen_hecd.omp" |
| 444 | printf 'CAPS' | "$WORK/omsci_fmm_zt_additions_collider" > "$WORK/regen_fmm1.omp" |
| 445 | cmp -s "$ROOT/paper/fmm_zt_additions_collider.omp" "$WORK/regen_fmm1.omp" |
| 446 | printf 'CAPS' | "$WORK/omsci_brouwer_cwc_d12_world_records" > "$WORK/regen_cwc12.omp" |
| 447 | cmp -s "$ROOT/paper/brouwer_cwc_d12_world_records.omp" "$WORK/regen_cwc12.omp" |
| 448 | printf 'CAPS' | "$WORK/omsci_signed_difference_sets_29_world_records" > "$WORK/regen_sds29.omp" |
| 449 | cmp -s "$ROOT/paper/signed_difference_sets_29_world_records.omp" "$WORK/regen_sds29.omp" |
| 450 | printf 'CAPS' | "$WORK/omsci_fmm_zt_additions_wave2_collider" > "$WORK/regen_fmm2.omp" |
| 451 | cmp -s "$ROOT/paper/fmm_zt_additions_wave2_collider.omp" "$WORK/regen_fmm2.omp" |
| 452 | printf 'CAPS' | "$WORK/omsci_omzk01_goldilocks_fp2_stark" > "$WORK/regen_omzk01.omp" |
| 453 | cmp -s "$ROOT/paper/omzk01_goldilocks_fp2_stark.omp" "$WORK/regen_omzk01.omp" |
| 454 | printf 'CAPS' | "$WORK/omsci_labs_17_world_records_n228_268" > "$WORK/regen_labs17.omp" |
| 455 | cmp -s "$ROOT/paper/labs_17_world_records_n228_268.omp" "$WORK/regen_labs17.omp" |
| 456 | printf 'CAPS' | "$WORK/omsci_labs_16_world_records_n270_300" > "$WORK/regen_labs16.omp" |
| 457 | cmp -s "$ROOT/paper/labs_16_world_records_n270_300.omp" "$WORK/regen_labs16.omp" |
| 458 | printf 'CAPS' | "$WORK/omsci_omfhe01_rlwe_bfv_n4096_depth2" > "$WORK/regen_omfhe01.omp" |
| 459 | cmp -s "$ROOT/paper/omfhe01_rlwe_bfv_n4096_depth2.omp" "$WORK/regen_omfhe01.omp" |
| 460 | printf 'CAPS' | "$WORK/omsci_butson_hadamard_bh46_bh74_6" > "$WORK/regen_bh1.omp" |
| 461 | cmp -s "$ROOT/paper/butson_hadamard_bh46_bh74_6.omp" "$WORK/regen_bh1.omp" |
| 462 | printf 'CAPS' | "$WORK/omsci_labs_14_world_records_n318_391" > "$WORK/regen_labs14.omp" |
| 463 | cmp -s "$ROOT/paper/labs_14_world_records_n318_391.omp" "$WORK/regen_labs14.omp" |
| 464 | printf 'CAPS' | "$WORK/omsci_omfhe02_rlwe_bfv_n8192_depth4" > "$WORK/regen_omfhe02.omp" |
| 465 | cmp -s "$ROOT/paper/omfhe02_rlwe_bfv_n8192_depth4.omp" "$WORK/regen_omfhe02.omp" |
| 466 | printf 'CAPS' | "$WORK/omsci_labs_10_world_records_n204_537" > "$WORK/regen_labs10.omp" |
| 467 | cmp -s "$ROOT/paper/labs_10_world_records_n204_537.omp" "$WORK/regen_labs10.omp" |
| 468 | printf 'CAPS' | "$WORK/omsci_omzk03_labs234_fp2_stark" > "$WORK/regen_omzk03.omp" |
| 469 | cmp -s "$ROOT/paper/omzk03_labs234_fp2_stark.omp" "$WORK/regen_omzk03.omp" |
| 470 | printf 'CAPS' | "$WORK/omsci_butson_hadamard_bh122_6" > "$WORK/regen_bh122.omp" |
| 471 | cmp -s "$ROOT/paper/butson_hadamard_bh122_6.omp" "$WORK/regen_bh122.omp" |
| 472 | printf 'CAPS' | "$WORK/omsci_labs_8_world_records_n235_442" > "$WORK/regen_labs8.omp" |
| 473 | cmp -s "$ROOT/paper/labs_8_world_records_n235_442.omp" "$WORK/regen_labs8.omp" |
| 474 | printf 'CAPS' | "$WORK/omsci_omzk04_bh46_fp2_stark" > "$WORK/regen_omzk04.omp" |
| 475 | cmp -s "$ROOT/paper/omzk04_bh46_fp2_stark.omp" "$WORK/regen_omzk04.omp" |
| 476 | printf 'CAPS' | "$WORK/omsci_omfhe03_labs235_depth2_bfv" > "$WORK/regen_omfhe03.omp" |
| 477 | cmp -s "$ROOT/paper/omfhe03_labs235_depth2_bfv.omp" "$WORK/regen_omfhe03.omp" |
| 478 | printf 'CAPS' | "$WORK/omsci_can_ca333_t4_k24_v3_world_record" > "$WORK/regen_ca333.omp" |
| 479 | cmp -s "$ROOT/paper/can_ca333_t4_k24_v3_world_record.omp" "$WORK/regen_ca333.omp" |
| 480 | printf 'CAPS' | "$WORK/omsci_labs_7_world_records_n528_586" > "$WORK/regen_labs7.omp" |
| 481 | cmp -s "$ROOT/paper/labs_7_world_records_n528_586.omp" "$WORK/regen_labs7.omp" |
| 482 | printf 'CAPS' | "$WORK/omsci_omzk05_bh122_fp2_stark" > "$WORK/regen_omzk05.omp" |
| 483 | cmp -s "$ROOT/paper/omzk05_bh122_fp2_stark.omp" "$WORK/regen_omzk05.omp" |
| 484 | printf 'CAPS' | "$WORK/omsci_omzk06_can333_fp2_stark" > "$WORK/regen_omzk06.omp" |
| 485 | cmp -s "$ROOT/paper/omzk06_can333_fp2_stark.omp" "$WORK/regen_omzk06.omp" |
| 486 | printf 'CAPS' | "$WORK/omsci_omfhe04_rlwe_bfv_n16384_depth6" > "$WORK/regen_omfhe04.omp" |
| 487 | cmp -s "$ROOT/paper/omfhe04_rlwe_bfv_n16384_depth6.omp" "$WORK/regen_omfhe04.omp" |
| 488 | printf 'CAPS' | "$WORK/omsci_butson_hadamard_bh202_6" > "$WORK/regen_bh202.omp" |
| 489 | cmp -s "$ROOT/paper/butson_hadamard_bh202_6.omp" "$WORK/regen_bh202.omp" |
| 490 | printf 'CAPS' | "$WORK/omsci_butson_hadamard_bh110_bh146_6" > "$WORK/regen_bh110.omp" |
| 491 | cmp -s "$ROOT/paper/butson_hadamard_bh110_bh146_6.omp" "$WORK/regen_bh110.omp" |
| 492 | printf 'CAPS' | "$WORK/omsci_can_ca270_t4_k18_v3_world_record" > "$WORK/regen_ca270.omp" |
| 493 | cmp -s "$ROOT/paper/can_ca270_t4_k18_v3_world_record.omp" "$WORK/regen_ca270.omp" |
| 494 | printf 'CAPS' | "$WORK/omsci_omzk07_labs586_fp2_stark" > "$WORK/regen_omzk07.omp" |
| 495 | cmp -s "$ROOT/paper/omzk07_labs586_fp2_stark.omp" "$WORK/regen_omzk07.omp" |
| 496 | printf 'CAPS' | "$WORK/omsci_integer_welch_superposition_collider" > "$WORK/regen_welch.omp" |
| 497 | cmp -s "$ROOT/paper/integer_welch_superposition_collider.omp" "$WORK/regen_welch.omp" |
| 498 | |
| 499 | AGG_SHA="$(hash_file "$WORK/all_capsules.bin")" |
| 500 | echo "OMP_NODE_WITNESS_PASS os=$OS arch=$ARCH capsules=$CNT regen_parity=87/87 tamper_rc=$TAMPER_RC agg_sha256=$AGG_SHA" |
| 501 | |
| 502 | if [ "$ATTEST" -eq 1 ]; then |
| 503 | WITNESS_URL="${WITNESS_URL:-https://interplane.io/strands/witness}" |
| 504 | compile_native "$ROOT/src/omsci_witness_prove.om" "$WORK/omsci_witness_prove" |
| 505 | OS_ARCH="${OS}-${ARCH}" |
| 506 | if [ "${GITHUB_ACTIONS:-}" = "true" ]; then |
| 507 | NODE_SEED="ci-provider:github-actions:${OS_ARCH}" |
| 508 | elif [ "${GITLAB_CI:-}" = "true" ]; then |
| 509 | NODE_SEED="ci-provider:gitlab-ci:${OS_ARCH}" |
| 510 | elif [ -r /etc/machine-id ]; then |
| 511 | NODE_SEED="machine:$(tr -d ' \n\r' < /etc/machine-id):${OS_ARCH}" |
| 512 | elif [ "$OS" = "Darwin" ] && command -v ioreg >/dev/null 2>&1; then |
| 513 | UUID="$(ioreg -rd1 -c IOPlatformExpertDevice 2>/dev/null | awk -F'"' '/IOPlatformUUID/{print $4; exit}')" |
| 514 | NODE_SEED="darwin:${UUID:-$(hostname)}:${OS_ARCH}" |
| 515 | else |
| 516 | NODE_SEED="host:$(hostname):${OS_ARCH}" |
| 517 | fi |
| 518 | NODE_ID="$(printf 'NID1%s' "$NODE_SEED" | "$WORK/omsci_witness_prove")" |
| 519 | CHAL="$(curl -fsSL --max-time 15 "${WITNESS_URL}/challenge")" |
| 520 | CHAL_TAG="$(printf '%s\n' "$CHAL" | awk '{print $1}')" |
| 521 | NONCE="$(printf '%s\n' "$CHAL" | awk '{print $2}')" |
| 522 | OFF="$(printf '%s\n' "$CHAL" | awk '{print $3}')" |
| 523 | if [ "$CHAL_TAG" != "CHAL" ] || [ -z "$NONCE" ] || [ -z "$OFF" ]; then |
| 524 | echo "FAIL: invalid witness challenge response: $CHAL" >&2 |
| 525 | exit 61 |
| 526 | fi |
| 527 | B0=$(( (OFF / 16777216) % 256 )) |
| 528 | B1=$(( (OFF / 65536) % 256 )) |
| 529 | B2=$(( (OFF / 256) % 256 )) |
| 530 | B3=$(( OFF % 256 )) |
| 531 | O0="$(printf '%03o' "$B0")" |
| 532 | O1="$(printf '%03o' "$B1")" |
| 533 | O2="$(printf '%03o' "$B2")" |
| 534 | O3="$(printf '%03o' "$B3")" |
| 535 | PROOF="$({ printf 'PRV1%s%s' "$NONCE" "$NODE_ID"; printf "\\${O0}\\${O1}\\${O2}\\${O3}"; cat "$WORK/all_capsules.bin"; } | "$WORK/omsci_witness_prove")" |
| 536 | RESP="$(curl -fsSL --max-time 15 -X POST \ |
| 537 | -H "Content-Type: application/x-www-form-urlencoded" \ |
| 538 | --data "node_id=${NODE_ID}&os_arch=${OS_ARCH}&capsules=${CNT}&agg_sha256=${AGG_SHA}&nonce=${NONCE}&proof=${PROOF}" \ |
| 539 | "$WITNESS_URL")" |
| 540 | echo "OMP_NODE_ATTEST_PASS url=$WITNESS_URL os_arch=$OS_ARCH node_id=$NODE_ID resp=$RESP" |
| 541 | fi |