diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/fair-launch.md | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/docs/fair-launch.md b/docs/fair-launch.md new file mode 100644 index 0000000..79eca8e --- /dev/null +++ b/docs/fair-launch.md | |||
| @@ -0,0 +1,69 @@ | |||
| 1 | # Bitflash fair-launch verifier | ||
| 2 | |||
| 3 | Bitflash ships a deterministic fair-launch audit script: | ||
| 4 | |||
| 5 | ```bash | ||
| 6 | python3 scripts/verify-fair-launch.py --max-blocks 1000 --out bitflash-fair-launch-report.json --json | ||
| 7 | ``` | ||
| 8 | |||
| 9 | The verifier reads `blk*.dat` directly from the local Bitflash data directory. | ||
| 10 | It does not use Berkeley DB, does not call the node binary, and does not need | ||
| 11 | network access. | ||
| 12 | |||
| 13 | The report proves the launch baseline that can be checked from the chain: | ||
| 14 | |||
| 15 | - the genesis block hash matches the source constant; | ||
| 16 | - the genesis merkle root matches the source constant; | ||
| 17 | - the genesis transaction is a single coinbase transaction; | ||
| 18 | - the genesis output total is exactly `50.00000000 BTF`; | ||
| 19 | - the scanned block range and mined coinbase total are reproducible. | ||
| 20 | |||
| 21 | For machines that do not have a synced data directory yet, the source constants | ||
| 22 | can be checked without disk blocks: | ||
| 23 | |||
| 24 | ```bash | ||
| 25 | python3 scripts/verify-fair-launch.py --reconstruct-genesis | ||
| 26 | ``` | ||
| 27 | |||
| 28 | ## Deterministic output | ||
| 29 | |||
| 30 | Use `--json` or `--out` for canonical JSON. The JSON is written with sorted | ||
| 31 | keys, fixed separators, ASCII escaping, and one trailing newline. It deliberately | ||
| 32 | does not include local paths or wall-clock generation time, so two auditors | ||
| 33 | scanning the same block range produce the same bytes. | ||
| 34 | |||
| 35 | That makes the report shareable: | ||
| 36 | |||
| 37 | ```bash | ||
| 38 | python3 scripts/verify-fair-launch.py --max-blocks 1000 --out report.json --json | ||
| 39 | sha256sum report.json | ||
| 40 | ``` | ||
| 41 | |||
| 42 | If another auditor runs the same command against the same chain prefix, the | ||
| 43 | `sha256sum` should match. | ||
| 44 | |||
| 45 | ## OpenTimestamps | ||
| 46 | |||
| 47 | OpenTimestamps is optional and external. It anchors the report in Bitcoin | ||
| 48 | without adding any bridge or dependency to Bitflash consensus. | ||
| 49 | |||
| 50 | After generating a canonical JSON report: | ||
| 51 | |||
| 52 | ```bash | ||
| 53 | ots stamp report.json | ||
| 54 | ots verify report.json.ots | ||
| 55 | ``` | ||
| 56 | |||
| 57 | The `.ots` file proves that the exact report bytes existed no later than the | ||
| 58 | Bitcoin block that confirms the timestamp. | ||
| 59 | |||
| 60 | ## What this does not claim | ||
| 61 | |||
| 62 | This is not a retroactive genesis commitment. The Bitflash genesis block already | ||
| 63 | exists, so adding a new on-chain commitment to genesis would create a different | ||
| 64 | chain. This verifier instead audits the launch state that is already on-chain | ||
| 65 | and makes the result reproducible and timestampable. | ||
| 66 | |||
| 67 | It also does not prove real-world miner identity. It proves the genesis state, | ||
| 68 | the absence of non-coinbase premine in genesis, and the deterministic coinbase | ||
| 69 | totals over the scanned prefix. | ||