Skip to content

Commit ab2139d

Browse files
tcoratgerclaude
andauthored
refactor(aggregation): spell out LOG_INVERSE_RATE (#1138)
Rename the LOG_INV_RATE module constant to LOG_INVERSE_RATE to comply with the no-abbreviations rule. The constant is locally defined and passed positionally to the Rust prover, so this is a pure Python identifier rename with no wire impact. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 37fdfd3 commit ab2139d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/lean_spec/spec/forks/lstar/containers/aggregation.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from lean_spec.spec.forks.lstar.slot import Slot
2121
from lean_spec.spec.ssz import ByteList512KiB, Bytes32, Container
2222

23-
LOG_INV_RATE: int = 1 if LEAN_ENV == "test" else 2
23+
LOG_INVERSE_RATE: int = 1 if LEAN_ENV == "test" else 2
2424
"""
2525
Inverse-rate exponent forwarded to the SNARK backend.
2626
@@ -110,7 +110,7 @@ def aggregate(
110110
raw_signatures_ssz,
111111
bytes(message),
112112
int(slot),
113-
LOG_INV_RATE,
113+
LOG_INVERSE_RATE,
114114
children_bytes or None,
115115
mode=LEAN_ENV,
116116
)
@@ -240,7 +240,7 @@ def aggregate(
240240
try:
241241
_, multi_message_aggregate_wire = merge_many_single_message_proof(
242242
single_message_aggregate_entries,
243-
LOG_INV_RATE,
243+
LOG_INVERSE_RATE,
244244
mode=LEAN_ENV,
245245
)
246246
except Exception as exception:
@@ -289,7 +289,7 @@ def split_by_message(
289289
public_keys_per_component_ssz,
290290
bytes(self.proof.data),
291291
bytes(message),
292-
LOG_INV_RATE,
292+
LOG_INVERSE_RATE,
293293
mode=LEAN_ENV,
294294
)
295295
except Exception as exception:

0 commit comments

Comments
 (0)