# V20.7.5 — Controlled Blockchain Engineering Experiments

## Start
Extract the complete edition into a new directory. In local editions run `START_LOCAL_SERVER.cmd`, then open Home → Blockchain for IoT → Lecture Module Sequence. The 16 lecture module pages and 15 earlier blockchain labs retain their original teaching material and controls. Select **Experiment** for the new investigation plan; **Open controlled investigation** takes you to the Simulation tab and the new workbench. Alternatively scroll to **Run a reproducible investigation** below the existing simulation.

## Student workflow
1. Read the research question, controlled variables and original procedures. Write a prediction before running a trial.
2. Select a reference scenario; run it. Inspect the calculated fields; play, pause, step or replay the trace. Run the fault scenarios individually or together. The matrix is computed on demand, not a table of pre-entered observations.
3. Compare reference and fault cases with the predeclared criteria. “PASS” means that the model matched its criterion; it does not mean that a malicious or invalid transaction was accepted. A correctly rejected transaction can pass a negative test.
4. Use the original simulation controls to explore an additional independent variable. Restore the reference settings. The bounded models are deterministic, so repeating the identical configuration reproduces the same outputs; do not treat repeated identical deterministic runs as independent physical samples.
5. Export completed trial evidence, record observations and limitations in the existing notebook. Exports are browser computational evidence and are not automatically imported into the existing Evidence Portfolio. Preserve separate actual Remix VM receipts if you perform practical contract verification.

## Additional studies
- **Merkle:** the original full tree still computes real SHA-256 hashes. The new independent verifier receives only the candidate, leaf index, tree size, ordered sibling hashes and trusted root. The root is a local teaching trust anchor, not a trusted network header. Compare valid, changed-record, changed-sibling, wrong-direction, wrong-index, wrong-root and short-packet cases. The encoding is the original `leaf:` + JSON string, and `node:` + ordered hexadecimal child digests, not Bitcoin or Ethereum wire encoding. Sibling bytes exclude index, root, candidate and serialization overhead.
- **Hashing:** flip one of seven bits in each byte of a printable ASCII input (1–32 chars); record actual SHA-256 and Hamming distance for up to 224 mutations. The output histogram counts those variants, not an independent random sample. No guaranteed 128-bit distance.
- **Mining:** run five bounded nonce searches with distinct salts at each toy difficulty. `16^difficulty` is an ideal unbounded expectation, not measured network performance. Record capped searches separately; no real mining or cryptocurrency transaction takes place.
- **Solidity:** execute a sequence of owner/outsider calls to fictional D1 or the zero address; inspect storage before and after and event count. This is a model of DeviceRegistry.sol's guard ordering, not the EVM. For actual execution use the existing contract and the Remix instructions: deploy with owner account, enable a nonzero device, change caller and attempt disable, switch back and try zero-address write, then disable the original device. Inspect state after each call. Actual gas, receipt and event log must be captured independently in Remix VM.

## Independent verification
From the setup wizard download `blockchain-validation-toolkit.zip`, extract, and run `python3 reference2075.py <exported-evidence.json>`. It independently recalculates the four additional study exports and the Merkle controlled trial matrix with Python's hashlib or reference state rules. For other trial matrices the Node profile checks all 68 predefined cases. From the full local package:

```bash
python3 verification/runner.py --profile controlled-blockchain --output controlled-evidence.json
node tests/test2075.cjs
python3 preflight2075.py
```

The original catalogue and adaptive exam remain at their previous 102-lab scope. This release strengthens 31 existing blockchain pages without adding new laboratory pages, changing the other courses, or claiming live EVM, Fabric, IOTA, physical device or cloud validation. Models retain their bounded assumptions; historical lecture-era protocols are distinguished from current implementations. Existing modules, studio inventory, source snippets, original simulations and toolkits remain unchanged apart from additive integration. The trial expectations are instructional model criteria, not independently measured experimental data. Browser tests use packaged markup and scripts in in-memory Chromium with local storage/network adapters; independent host cryptographic reference checks do not constitute production protocol conformance.
