Testing & Verification

Reproducible technical tests for every component of b3chain. This is the landing page for everything an independent reviewer needs to verify our claims: PoW reference code, multi-node regtest simulation, the structured Phase 11 self-audit, and a live 51% attack walkthrough.

Purpose: independent verification Environment: regtest only Languages: Python 3 + Bash + C++
This page does not represent a live network. Every script runs on a local regtest environment. There is no mainnet, no token, no airdrop. Parameters may change before any consensus freeze.

1. Reproducible tests #

Standalone scripts shipped in contrib/testing/. Run any of them on your own machine and diff the output against ours.

2. Phase 11 security audit #

A structured self-audit run before any mainnet launch. Each item below has a dedicated audit script and a result page with a tutorial, expected output, and how to reproduce. The full master checklist is doc/SECURITY-AUDIT.md.

Open the master checklist →

Live networks #

Beyond the local-only regtest scripts above, B3Chain also runs a permanent public testnet so anyone can soak-test against real network conditions (peer discovery, propagation latency, real difficulty retargeting) before mainnet launch.

3. Attacks & defense #

Educational walkthroughs of how known PoW attacks work and what protects against them, with live regtest demonstrations.

4. Extended security evidence #

Three additional bodies of evidence layered on top of the Phase 11 self-audit: regression-testing what Bitcoin already proves, side-by-side measurements of BLAKE3 vs SHA-256, and a forward-looking improvement roadmap.

5. Run everything yourself #

Prerequisites

OS
Linux or WSL2 on Windows
Python
3.10 or later
blake3
pip3 install blake3
b3chaind
build with cmake (see build-unix.md)

One-shot

# Clone & build
git clone https://github.com/b3chain/b3chain.git
cd b3chain
mkdir build && cd build
cmake .. && cmake --build . -j$(nproc)
cd ..

# Reproducible tests
bash contrib/testing/regtest-simulation.sh
python3 contrib/testing/verify-blake3-pow.py

# Phase 11 self-audit (every check)
bash contrib/testing/audit/run-all.sh

Each script prints AUDIT RESULT: PASS or AUDIT RESULT: FAIL on its final line, and exits with the matching exit code.