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
[chain, wallet] Add verify_tx
for TxGraph
#1339
base: master
Are you sure you want to change the base?
Conversation
* Add feature `bitcoinconsensus` to Cargo.toml
For getting bytes from a hex str.
That checks we can verify a transaction when TxGraph has knowledge of the coins being spent. Additionally, check these error cases: - verification fails due to missing outputs - script verification fails
* Add feature `bitcoinconsensus` to Cargo.toml
verify_tx
for TxGraphverify_tx
for TxGraph
I can't decide whether we need this in Would love some input on this. |
Right, I'm curious if anyone has specifically asked for this functionality in bdk. |
How about leaving it as a draft until we are ready to scope out a 1.1 release. Maybe by then we'll have a use case, if not we can close it. There is a scenario described in #352 where this verify functionality could be used. |
@notmandatory I don't really have an opinion on this being in any milestone. My opinion is that the main issue is fixing RBF design. Being able to verify a transaction is also a nice to have but if no one needs it then it doesn't have to be in v1.0.0. |
Reintroduce a way to verify a transaction.
This adds a new feature to
bdk_chain
that uses featurebitcoin/bitcoinconsensus
, and exposes the same through bdk wallet asbdk_chain/bitcoinconsensus
.closes #1180
Notes to the reviewers
Changelog notice
Checklists
All Submissions:
cargo fmt
andcargo clippy
before committingNew Features: