Skip to content

refactor(aggregation): spell out LOG_INVERSE_RATE - #1138

Merged
tcoratger merged 1 commit into
leanEthereum:mainfrom
tcoratger:audit-forks/log-inverse-rate
Jun 17, 2026
Merged

refactor(aggregation): spell out LOG_INVERSE_RATE#1138
tcoratger merged 1 commit into
leanEthereum:mainfrom
tcoratger:audit-forks/log-inverse-rate

Conversation

@tcoratger

Copy link
Copy Markdown
Collaborator

What

Rename the module constant LOG_INV_RATE to LOG_INVERSE_RATE in the lstar aggregation containers.

Why

The INV fragment abbreviates "inverse", violating the no-abbreviations rule for identifiers. A reference spec must spell words out in full.

The constant is locally defined (LOG_INVERSE_RATE: int = 1 if LEAN_ENV == "test" else 2), not imported from lean_multisig_py, and is passed positionally to the Rust prover functions. Renaming the Python identifier therefore has no effect on the external library contract or any wire format. Pure rename, four occurrences, no behavior change.

just check passes (lint, format, type check, spell check, mdformat).

🤖 Generated with Claude Code

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>
@tcoratger
tcoratger merged commit ab2139d into leanEthereum:main Jun 17, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant