Skip to content

Railgun gas by transaction type

@rig_ef@rig_ef9 charts

1. Compare transaction types first

Each operation appears twice: today as one execution transaction, then after FrameTx with execution, VERIFY admission, and frame overhead separated. Colors stay consistent across panels.

Railgun gas: FrameTx + keyed nonce feasibility

Railgun should be read by transaction type first. Average execution gas ranges from about 749k to 1.29M depending on operation type.

The current model says FrameTx can separate cheap admission from expensive execution: VERIFY runs one 52.6k-gas prototype path that already counts keyed nonce consumption, while proof verification and state changes stay in execution. This is feasibility evidence, not a final FOCIL integration proof.

3. Plain-English accounting

FrameTx changes where admission is checked. It is not a proof-verification gas reduction by itself.

2. Then zoom into one private transfer

The compute bucket is split: MULMOD + ADDMOD verifier arithmetic is 180.9k gas; the remaining 348.6k is proof/EVM scaffolding and other compute.

6. Evidence

Measured mainnet gas, profiler buckets, and local prototype measurements. The open question is final FOCIL/FrameTx implementation-grade validation.

4. What fits VERIFY

Prototype result: admission + keyed nonce is 52.6k gas, under a 100k VERIFY cap. Full Railgun execution is still required, but should stay outside VERIFY.

5. What to work on next

The split makes inclusion feasible. The remaining big cost is execution-side proof/state work.