BlockDAG by Hand
A hash is a fingerprint. Chain the fingerprints and you get a blockchain — which must throw away every block mined in parallel. Kaspa keeps them all instead, and GHOSTDAG puts them in order.
Work through the six tabs and the whole thing is built out of parts you can poke. The last three share one DAG: build it under BlockDAG, and GHOSTDAG re-colours it while Ordering re-sequences it.
Data
SHA-256
Mined
Block
Nonce
Data
Hash
Click blocks to select parents, then add a block on that selection. Blocks with no children yet are tips.
Blue — well connected Red — outside the cluster Selected parent chain n = blue score
Click a block to edit the transaction it carries. Format: Alice -> Bob: 20
What to try
- Hash — add a space at the end of the data. Everything changes; the length never does.
- Block — type anything, watch it go red, then mine it.
- Blockchain — edit block 2 and re-mine it. Everything after it stays broken until re-mined in turn.
- BlockDAG — select an old block and build on it. That is a lagging miner, and the DAG absorbs the work instead of discarding it.
- GHOSTDAG — drag
kto 0 to get Bitcoin’s rule, then back up to 6. - Ordering — select tip
Hon the BlockDAG tab, add two blocks, and watch the double spend flip from Bob to Carol.
Each tab has a page that explains it properly, starting at what Kaspa is.