block being comparedbisected halfwrong bit in Bob's keycorrected / secret key bit
Couldn't start the 3D scene.

BB84 Key Reconciliation: Cascade Parity Search and Privacy Amplification

After the quantum part of BB84, Alice and Bob still hold keys that disagree in a few percent of the bits, and an eavesdropper may know part of them. This simulator runs the classical post-processing on a real random key: the Cascade protocol compares the parity of shuffled blocks over a public channel, bisects every odd block to find a wrong bit in about log2 of the block size parities, and lets each correction ripple back through earlier passes. You see the disclosed parities pile up against the Shannon limit N times the binary entropy of the error rate, and the reconciliation efficiency settle near 1.1 to 1.2. Then a random Toeplitz matrix hashes the agreed key down to the length allowed by the leftover hash lemma, subtracting both the leaked parities and the phase-error entropy, so the secret fraction drops to zero at the famous 11 percent error rate. The 3D view uses Blender-built key racks, console and hash module with boards of bit tiles; the 2D view shows the same grids and plots.

Made with 🟠 Blender · Three.js