Hikari simulation results
Generated by cargo run --release -p pqrbtc-sim. Rerun it to reproduce every number.
1. Block colouring at 10 blocks per second (real GHOSTDAG code, k = 124)
| mean delay | blocks | red (lost) | parents / block | merged / block | CPU time |
| 100 ms | 6139 | 0 (0.000 %) | 1.89 | 1.90 | 0.0 s |
| 250 ms | 6139 | 0 (0.000 %) | 3.07 | 3.17 | 0.0 s |
| 500 ms | 6139 | 0 (0.000 %) | 4.52 | 4.92 | 0.0 s |
| 1000 ms | 6139 | 0 (0.000 %) | 6.81 | 8.08 | 0.1 s |
| 2000 ms | 6139 | 0 (0.000 %) | 9.89 | 13.27 | 0.2 s |
For contrast, the same network with a small k = 10 (too strict for 10 blocks/s):
| mean delay | blocks | red (lost) |
| 250 ms | 625 | 7 (1.1 %) |
| 1000 ms | 625 | 282 (45.1 %) |
2. Probability that a payment is reversed (continuous time)
| attacker share | after 1 s | after 5 s | after 10 s | after 30 s | Bitcoin after 60 min |
| 10 % | 5.5e-3 | 2.9e-10 | 4.3e-19 | 4.5e-54 | 3.4e-2 |
| 20 % | 4.9e-2 | 8.2e-6 | 2.7e-10 | 6.7e-28 | 1.3e-1 |
| 25 % | 1.1e-1 | 2.6e-4 | 2.4e-7 | 3.2e-19 | 2.2e-1 |
| 30 % | 2.0e-1 | 4.0e-3 | 4.5e-5 | 1.5e-12 | 3.3e-1 |
| 40 % | 5.3e-1 | 1.6e-1 | 4.5e-2 | 5.0e-4 | 6.3e-1 |
3. Hikari after 5 seconds versus Bitcoin after 6 confirmations (~60 min)
| attacker share | Hikari, 5 s | Bitcoin, 6 confirmations | Hikari wait for < 1 in a million |
| 10 % | 2.9e-10 | 5.9e-4 | 3.5 s |
| 20 % | 8.2e-6 | 2.3e-2 | 6.5 s |
| 25 % | 2.6e-4 | 6.9e-2 | 9.0 s |
| 30 % | 4.0e-3 | 1.6e-1 | 14.5 s |
| 35 % | 3.2e-2 | 3.0e-1 | 26.5 s |
| 40 % | 1.6e-1 | 4.9e-1 | 59.5 s |
Monte Carlo check (1,000,000 trials, 10 blocks/s):
| attacker share | wait | exact | Monte Carlo |
| 30 % | 1 s | 0.2025 | 0.2024 |
| 30 % | 2 s | 0.0695 | 0.0694 |
| 40 % | 5 s | 0.1563 | 0.1558 |