Skip to content

Refactor: Updated signMessage to use util::Expected and removed SigningResult::OK - #35201

Closed
kevkevinpal wants to merge 1 commit into
bitcoin:masterfrom
kevkevinpal:SigningResultUtilExpected
Closed

kevkevinpal wants to merge 1 commit into
bitcoin:masterfrom
kevkevinpal:SigningResultUtilExpected

Conversation

@kevkevinpal

Copy link
Copy Markdown
Contributor

Summary

Similar to #32958 and #35105.

We now are using util::Expected and removed SigningResult::OK

This makes the enum less confusing because now it no longer includes OK and is now a pure error enum.

@DrahtBot

DrahtBot commented May 3, 2026 •

Copy link
Copy Markdown
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Code Coverage & Benchmarks

For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/35201.

Reviews

See the guideline and AI policy for information on the review process.
A summary of reviews will appear here.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #35436 (wallet: Add addHDkey interface by pseudoramdom)
  • #34520 (refactor: Add [[nodiscard]] to functions returning bool+mutable ref by maflcko)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

@kevkevinpal
kevkevinpal force-pushed the SigningResultUtilExpected branch from 693718c to f96997a Compare May 3, 2026 13:36
@DrahtBot

DrahtBot commented May 3, 2026

Copy link
Copy Markdown
Contributor

🚧 At least one of the CI tasks failed.
Task test ancestor commits: https://github.com/bitcoin/bitcoin/actions/runs/25280307633/job/74116469483
LLM reason (✨ experimental): CI failed due to a Clang -Werror build error: the switch in signverifymessagedialog.cpp doesn’t handle the OK enum value.

Hints

Try to run the tests locally, according to the documentation. However, a CI failure may still
happen due to a number of reasons, for example:

  • Possibly due to a silent merge conflict (the changes in this pull request being
    incompatible with the current code in the target branch). If so, make sure to rebase on the latest
    commit of the target branch.

  • A sanitizer issue, which can only be found by compiling with the sanitizer and running the
    affected test.

  • An intermittent issue.

Leave a comment here, if you need help tracking down a confusing failure.

@kevkevinpal

Copy link
Copy Markdown
Contributor Author

Looks like the CI failure is fixed with this PR #35202 will rebase onto master once it's merged to get the CI passing

@kevkevinpal
kevkevinpal force-pushed the SigningResultUtilExpected branch from f00eda8 to e14b3ff Compare May 4, 2026 20:52
@kevkevinpal

Copy link
Copy Markdown
Contributor Author

rebased to e14b3ff

The CI should pass now

In this change we updated signMessage to use util::Expected and also removed SigningResult::OK
@kevkevinpal
kevkevinpal force-pushed the SigningResultUtilExpected branch from e14b3ff to 5cc8436 Compare June 2, 2026 03:14
@kevkevinpal

Copy link
Copy Markdown
Contributor Author

rebased and resolved conflicts in 5cc8436

@sedited

sedited commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

This has failed to attract any review in the three months that it has been open. Given the review bottleneck of this project and that it is a refactor, maybe this should be closed at this point?

@fanquake
fanquake marked this pull request as draft August 11, 2026 09:15
@fanquake

Copy link
Copy Markdown
Member

I agree. Especially given there are multiple other similar PRs open, that are not getting review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants