add gettxoutproof and verifytxoutproof commands and RPC calls#2516
add gettxoutproof and verifytxoutproof commands and RPC calls#2516markettes wants to merge 7 commits into
gettxoutproof and verifytxoutproof commands and RPC calls#2516Conversation
gettxoutproof and verifytxoutproof commands and RPC calls
7709c46 to
e1f2380
Compare
e1f2380 to
69bbd73
Compare
|
The implementation is solid and I've verified the RPC behavior on simnet. Error Handling in
|
Description
Closes #2290
This change implements
gettxoutproofandverifytxoutproofin btcd.The change:
blockhashis not providedImplementation notes:
gettxoutproofuses the explicitblockhashwhen providedverifytxoutproofvalidates proof structure and requires the referenced blockto be in the active chain
Steps to Test
--txindexand--simnetflagsgettxoutproofto retrieve a proof for a transaction, both with and without theblockhashargumentverifytxoutproofto verify the proof, ensuring it returns the correct transaction ID when valid and an error when invalidPull Request Checklist
Testing
Code Style and Documentation