Skip to content

RelayClamp ​

One clamp on the relay's bound, none on anything else it reports

3/3 passed in 1ms

TestWhat it doesResult
test_bound_convergesAt beta = 1 the gap between key_bound and key_attack falls tenfold per decade of V_A from 1e3 to 1e5.✅ pass
test_one_clampAt a relay position that cannot distil, SwapResult.key_rate is max(0, key_bound) = 0.0 while explain()'s key_bound = key_raw and attack.key_rate = key_attack stay negative.✅ pass
test_two_quantitiesAt a live relay position key_bound and key_attack differ by over 0.1, and lowering beta to 0.90 lowers key_attack and leaves key_bound bit-identical.✅ pass