-
Notifications
You must be signed in to change notification settings - Fork 37.7k
RPC/txoutproof: Support including (and verifying) proofs of wtxid #32844
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code Coverage & BenchmarksFor details see: https://corecheck.dev/bitcoin/bitcoin/pulls/32844. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. ConflictsReviewers, this pull request conflicts with the following ones:
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. LLM Linter (✨ experimental)Possible typos and grammar issues:
No other typos were found. drahtbot_id_4_m |
Wow, thank you for working on this! I was meaning to open an issue to ask for this, but did not even get to that yet. The request I would like an electrum server, assuming txindex=1, to be able to serve is:
return a dict containing:
Obviously the electrum server can act as middleware and transform the response, assuming the necessary fields are available or obtainable. As far as I can tell, but I haven't tried yet, the RPC response from this PR can be transformed to what I describe above. So the RPC looks to be doing what I need. :) I think it is non-trivial, so let me detail how an electrum/light client would then use
|
Concept ACK. @SomberNight it's still useful if you open an issue to track the reason you need this, just in case this implementation PR doesn't make. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Took an initial look at the code, but got a bit confused. Will check again later.
3abfd6d
to
e826ffd
Compare
…saction (not a CBlock)
e95981b
to
4b3a33a
Compare
Reworked this to cover @SomberNight 's requirements and address feedback. Test is now passing. |
4b3a33a
to
23edd3d
Compare
🐙 This pull request conflicts with the target branch and needs rebase. |
Feature requested by @SomberNight for Electrum's Lightning stuff. (Please confirm this does what you need)
Unfortunately WIP because the wtxid merkle root calculation doesn't match and I don't have time to figure out why not yet (maybe after concept ACK? or if anyone else wants to take a look...)
Mostly backward compatible, but a segwit-enabled proof will verify the generation tx in old versions.