aere-research/bench/start-node.sh
Aere Network 6cb0140fae Republished from a clean root: the compiled artifact is gone from history, and the local line of work joins the sanitized public line
The public history carried kat/__pycache__/mlkem768_reference.cpython-314.pyc,
a compiled Python artifact embedding the operator's absolute local path. Text
secret scanners do not read compiled binaries, which is exactly how it slipped
through, and removing it from the tip would have left it reachable through the
old root commits. So this repository is republished from a single clean root.

This root also carries, from the previously unpublished line of work:
- corrected LICENSE year, LICENSING.md, VERIFY-POLICY.md, and
  CITATIONS-UNRESOLVED.md remeasured 2026-08-11 (101 paths, README aligned)
- O-018: run_consensus_verification.py ran 19 of 29 models and reported PASS;
  it now runs all 29, and computemarket_smt.py gains resolveByTimeout /
  reclaimUnsettled cases plus a negative control
- O-006: the word 'audited' removed from next to Bouncy Castle, twice, after a
  concurrent edit resurrected it
- O-014: prior art named and dated - Algorand's native falcon_verify shipped
  about ten months before AERE's precompiles; the primacy claim is withdrawn
  where it was implied
- bench/ scripts parametrized so they actually run for an outsider (the
  earlier textual sanitization left $STAGING unexpanded inside Python strings)
- AIP-2/AIP-3 errata with measured figures, spec remeasurements at 2026-08-01,
  and the spec-zk-stack retractions (owner is an operational key, not the
  Foundation; 'maximally sound' withdrawn; aggregator V1 deprecated)
The redacted bench-host environment files from the sanitized line are kept
exactly as published; the unredacted local variants are not carried.
2026-08-15 13:52:14 +03:00

40 lines
1.7 KiB
Bash

#!/bin/bash
# Start an isolated single-node fork chain with the AERE future-EIP precompiles
# (0x0AE1-0x0AE7) active from genesis. Ethash + instant low-difficulty mining.
set -uo pipefail
# Paths are parameterized so this script runs as-is in a clean checkout. Override
# any of them in the environment. Previously these were hardcoded to a build
# operator's home directory, which both disclosed an internal layout and made the
# script unrunnable for anyone else without editing it.
# AERE_BESU_BIN path to the built besu launcher
# AERE_WORK_DIR scratch directory for node data and logs (WILL BE DELETED)
# AERE_STAGING directory holding bench/genesis.json and the KAT vectors
BESU="${AERE_BESU_BIN:-${HOME}/besu/build/install/besu/bin/besu}"
WORK_DIR="${AERE_WORK_DIR:-/tmp/aere-bench}"
STAGING="${AERE_STAGING:-$(cd "$(dirname "$0")/.." && pwd)}"
NODE_DIR="${WORK_DIR}/node"
NODE_LOG="${WORK_DIR}/node.log"
mkdir -p "${WORK_DIR}"
rm -rf "${NODE_DIR}"
nohup "$BESU" \
--data-path="${NODE_DIR}" \
--genesis-file="${STAGING}/bench/genesis.json" \
--network-id=28777 \
--miner-enabled --miner-coinbase=0x7E5F4552091A69125d5DfCb7b8C2659029395Bdf \
--min-gas-price=0 \
--rpc-http-enabled --rpc-http-host=127.0.0.1 --rpc-http-port=8545 \
--rpc-http-api=ETH,NET,WEB3,DEBUG,TXPOOL \
--host-allowlist='*' \
> "${NODE_LOG}" 2>&1 &
echo "besu pid $!"
echo "waiting for RPC..."
for i in $(seq 1 60); do
bn=$(curl -s -X POST http://127.0.0.1:8545 -H 'Content-Type: application/json' \
--data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' 2>/dev/null | grep -o '"result":"[^"]*"')
if [ -n "$bn" ]; then echo "RPC up: $bn"; break; fi
sleep 2
done
tail -5 "${NODE_LOG}"