Skip to content

fix(routes): sign the actual message in /signmessage, not an empty slice - #173

Open
orbitalturtle wants to merge 2 commits into
RGB-Tools:masterfrom
orbitalturtle:fix/sign-message-empty-slice
Open

orbitalturtle wants to merge 2 commits into
RGB-Tools:masterfrom
orbitalturtle:fix/sign-message-empty-slice

Conversation

@orbitalturtle

Copy link
Copy Markdown
Contributor

message.as_bytes()[message.len()..] is always an empty range, so every signature produced by this endpoint was over the empty string rather than the caller's message.

Turtle added 2 commits September 15, 2026 15:21
message.as_bytes()[message.len()..] is always an empty range, so every
signature produced by this endpoint was over an empty string rather
than the caller's message.
@orbitalturtle
orbitalturtle force-pushed the fix/sign-message-empty-slice branch from 1420f1e to ddfd096 Compare September 15, 2026 20:38
@codecov

codecov Bot commented Sep 15, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 16.66667% with 35 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (master@7597bbd). Learn more about missing BASE report.

Files with missing lines Patch % Lines
src/routes.rs 16.66% 35 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##             master     #173   +/-   ##
=========================================
  Coverage          ?   87.79%           
=========================================
  Files             ?       16           
  Lines             ?     8478           
  Branches          ?        0           
=========================================
  Hits              ?     7443           
  Misses            ?     1035           
  Partials          ?        0           
Flag Coverage Δ
rust 87.79% <16.66%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This branch has not been deployed

No deployments
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