You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: replace abbreviated/vague locals with descriptive names (leanEthereum#837)
* refactor: replace abbreviated/vague locals with descriptive names
Rename `acc` accumulators in the XMSS base-P decomposition helpers to
names that say what they hold: `remaining_value` in field.py,
`message_integer`/`encoded_tweak` in encoding.py, and
`packed_lengths`/`packed_tweak` in poseidon.py. In `aborting_decode`,
expand the banned `fe`/`a`/`d` to `field_element`/`element_value`/`quotient`.
Also rename `description_count` to `descendant_count` in head_sync.py
since it counts processed descendant blocks, not descriptions.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* docs: default pull requests to the upstream main repository
Add a CLAUDE.md rule so PRs are opened against leanEthereum/leanSpec
(base main) by default rather than the personal fork, unless the user
explicitly requests otherwise.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CLAUDE.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,7 @@ subspecifications that the Lean Ethereum protocol relies on.
20
20
- Keep specs simple, readable, and clear
21
21
- Repository is `leanSpec` not `lean-spec`
22
22
-**Always run linter checks before finishing**: Run `just check` at the end of any code changes to ensure all linting, formatting, type checking, and spell checking passes.
23
+
-**Pull requests target the main repo by default**: Unless the user explicitly says otherwise, open pull requests against the upstream main repository (`leanEthereum/leanSpec`, the `upstream` remote, base `main`) — NOT against a personal fork. Push the branch to the fork and open a cross-fork PR with `gh pr create --repo leanEthereum/leanSpec --base main --head <fork-owner>:<branch>`.
23
24
-**CRITICAL - NO BACKWARD COMPATIBILITY**: This is a STRICT requirement. NEVER add backward compatibility code under any circumstances. This means:
24
25
- NO legacy constants (like `KEY_TYPE_ED25519 = KeyType.ED25519`)
25
26
- NO wrapper functions that delegate to new classes
0 commit comments