1. Summary
| Category | Items | Passed | Failed | Pending |
|---|---|---|---|---|
| Consensus invariants | 4 | 4 | 0 | 0 |
| Hash function isolation | 1 | 1 | 0 | 0 |
| Network isolation | 1 | 1 | 0 | 0 |
| Wallet & address safety | 2 | 2 | 0 | 0 |
| Build / regression | 2 | 2 | 0 | 0 |
| Attack simulation | 1 | 1 | 0 | 0 |
| Total | 11 | 11 | 0 | 0 |
2. Checklist
| ID | Item | Script | Status | Detail |
|---|---|---|---|---|
| C-1 | Block subsidy halves at every 210 000 blocks | audit-supply-cap.py | PASS | page |
| C-2 | Total supply caps at 20 999 999.97690000 B3C | audit-supply-cap.py | PASS | page |
| C-3 | Subsidy returns 0 after halving 64 | audit-supply-cap.py | PASS | page |
| C-4 | Difficulty retarget enforces 4× bounds | audit-supply-cap.py | PASS | page |
| H-1 | PoW / Block-ID hash isolation | audit-pow-isolation.py | PASS | page |
| N-1 | Bitcoin magic / DNS seed isolation | audit-network-isolation.py | PASS | page |
| W-1 | Bitcoin address rejection (36 samples) | audit-address-rejection.py | PASS | page |
| W-2 | HD wallet BIP44 coin_type 9333 | audit-hd-coin-type.py | PASS | page |
| B-1 | SIMD vs portable C BLAKE3 differential | audit-simd-blake3.py | PASS | page |
| B-2 | Rebranding regression scan | audit-rebranding.sh | PASS | page |
| A-1 | 51% attack live regtest demo | audit-51-attack-sim.py | DEMO | page |
3. Run the whole suite
cd b3chain bash contrib/testing/audit/run-all.sh
Every audit script prints
AUDIT RESULT: PASS or AUDIT RESULT: FAIL on
its final line. The wrapper exits with the worst status it observed.
4. Findings & remediation (first run)
The first end-to-end run caught real regressions left over from the
rebranding pass. They were fixed in the same commit set as the audit
framework. Full table in
doc/SECURITY-AUDIT.md.
- 5 leftover Qt
tr()strings still said "Bitcoin" instead of "B3Chain" — fixed. - One RPC error message in
src/rpc/rawtransaction_util.cppstill said "Invalid Bitcoin address" — fixed. doc/Doxyfile.instill setPROJECT_NAME = "Bitcoin Core"— fixed.- ~30 references to
bitcoind/bitcoin-cliincontrib/*/README.md— bulk-renamed.
5. Source files
-
doc/SECURITY-AUDIT.md— master checklist -
contrib/testing/audit/— audit scripts -
src/test/audit/consensus_invariants_tests.cpp— C++ counterpart