Skip to content

Remove unused monero hasher#6853

Merged
M1nd3r merged 1 commit into
mainfrom
m1nd3r/remove-unused-hasher
Apr 30, 2026
Merged

Remove unused monero hasher#6853
M1nd3r merged 1 commit into
mainfrom
m1nd3r/remove-unused-hasher

Conversation

@M1nd3r

@M1nd3r M1nd3r commented Apr 29, 2026

Copy link
Copy Markdown
Contributor

Removal of unused code in monero.

@trezor-bot trezor-bot Bot added this to Firmware Apr 29, 2026
@github-project-automation github-project-automation Bot moved this to 🔎 Needs review in Firmware Apr 29, 2026
@coderabbitai

coderabbitai Bot commented Apr 29, 2026

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: a2668d30-526f-4d4f-a762-0085256b226b

📥 Commits

Reviewing files that changed from the base of the PR and between b87c1fd and 20c5ee7.

⛔ Files ignored due to path filters (1)
  • core/mocks/generated/trezorcrypto/monero.pyi is excluded by !**/generated/**
📒 Files selected for processing (5)
  • core/embed/upymod/modtrezorcrypto/modtrezorcrypto-monero.h
  • crypto/monero/xmr.c
  • crypto/monero/xmr.h
  • crypto/tests/test_check.c
  • crypto/tests/test_check_monero.h
💤 Files with no reviewable changes (5)
  • crypto/monero/xmr.h
  • crypto/monero/xmr.c
  • crypto/tests/test_check.c
  • core/embed/upymod/modtrezorcrypto/modtrezorcrypto-monero.h
  • crypto/tests/test_check_monero.h

Walkthrough

The incremental Monero hasher API and its MicroPython binding were removed. The MicroPython Hasher type (constructor, update, digest, copy, destructor, block_size, digest_size) was deleted from core/embed/upymod/modtrezorcrypto/modtrezorcrypto-monero.h. Corresponding wrapper functions (xmr_hasher_init, xmr_hasher_update, xmr_hasher_final, xmr_hasher_copy) were removed from crypto/monero/xmr.c and their declarations dropped from crypto/monero/xmr.h. The unit test covering the incremental hasher was removed from the test suite.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Description check ❓ Inconclusive The PR description is minimal and lacks required template sections like development status, project assignment, and QA information specified in the template. Add required sections from the template including development status (Draft/Needs Review), project assignment, priority, and QA notes as indicated by the 'no-QA' label.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The PR title accurately summarizes the main change: removal of unused monero hasher code across multiple files.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch m1nd3r/remove-unused-hasher

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
Review rate limit: 7/8 reviews remaining, refill in 7 minutes and 30 seconds.

Comment @coderabbitai help to get the list of available commands and usage tips.

@M1nd3r M1nd3r requested a review from andrewkozlik April 29, 2026 15:58
@github-actions

github-actions Bot commented Apr 29, 2026

Copy link
Copy Markdown

en main(all)

model device_test click_test persistence_test
T2T1 test(all) main(all) test(all) main(all) test(all) main(all)
T3B1 test(all) main(all) test(all) main(all) test(all) main(all)
T3T1 test(all) main(all) test(all) main(all) test(all) main(all)
T3W1 test(all) main(all) test(all) main(all) test(all) main(all)

Latest CI run: 25120657472

@M1nd3r M1nd3r added the no-QA On PR-merge, automatically transition status in the "Firmware" project to "Done (no QA)" state. label Apr 29, 2026
@M1nd3r M1nd3r force-pushed the m1nd3r/remove-unused-hasher branch from b87c1fd to 20c5ee7 Compare April 29, 2026 16:20
@M1nd3r M1nd3r requested a review from onvej-sl as a code owner April 29, 2026 16:20
@M1nd3r M1nd3r changed the title chore(core): remove unused monero hasher Remove unused monero hasher Apr 29, 2026

@obrusvit obrusvit left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The best code is no code.

@M1nd3r M1nd3r merged commit 14c6e43 into main Apr 30, 2026
106 checks passed
@M1nd3r M1nd3r deleted the m1nd3r/remove-unused-hasher branch April 30, 2026 11:36
@trezor-bot trezor-bot Bot moved this from 🔎 Needs review to ✅ Done (no QA) in Firmware Apr 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-QA On PR-merge, automatically transition status in the "Firmware" project to "Done (no QA)" state.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants