DocsHomomorphic cost

What the ceilings are.

Encrypted arithmetic is metered in homomorphic complexity units, with two limits per transaction: a total, and a separate limit on the longest sequential chain.

Why depth is the binding one

The running sum in the ladder is a sequential chain by nature — each range starts where the last one ended — so it is measured against the depth ceiling rather than the total. That is what sets the chunk size. The bit-shift that applies a tenure tier branches off the chain instead of extending it, which is why the multiplier is nearly free.

20

savers per chunk

The ladder extends twenty at a time.

3.24M

depth per chunk

Against a 5M ceiling — 35% headroom at the chosen size.

1.18M

the draw itself

Generating randomness and reducing it against the total.

Measured, not estimated

These come from the published costs of the operations involved. One correction is worth recording, because it was nearly missed: the reduction that produces the winning number costs about 1.6 times what an earlier reading of the table suggested, having been confused with a neighbouring operation. It still fits comfortably, but it fits on purpose rather than by luck.

There is one optimisation deliberately not taken. A newer built-in can sum a list of ciphertexts in one call, which sounds like exactly what the ladder needs. It is not: it produces a single total, and the ladder needs every running subtotal along the way. It could replace the last value, which is already free. So it is left out for a structural reason rather than an unmeasured one.