verifytxoutproof can return witnesses but cannot verify them #11242

issue TheBlueMatt opened this issue on September 5, 2017
  1. TheBlueMatt commented at 6:47 PM on September 5, 2017: contributor

    This is very unexpected and could result in some applications being confused. We should likely provide an option to generatetxoutproof to also provide a witness SPV proof, and remove the witness in verifytxoutproof unless the witness proof is present.

  2. sdaftuar commented at 6:58 PM on September 5, 2017: member

    verifytxoutproof only returns txids, not wtxids, and it only verifies that a txid is in the chain, and not that a given wtxid is in the chain.

    So I think it does the right thing (maybe could use better documentation), and we should just consider adding a way to generate/verify proofs that a given wtxid is in the chain. (See also #10350.)

  3. laanwj added the label RPC/REST/ZMQ on Sep 7, 2017
  4. pinheadmz commented at 3:37 PM on April 6, 2023: member

    This is a good idea and seems like something we should support. The output would need to prove the entire coinbase tx and then include a wtxid proof to the witness commitment. merkleblock is well-documented but this extra proof might need a BIP spec even if its just for an RPC.

    Are there any other uses for merkleblock proofs outside of SPV wallets? There hasn't been any more discussion on this issue for 6 years and we have client-side filtering available now which doesn't require proofs at all... so I wonder if this is important enough to work on or if we can close as wont-fix ?

  5. pinheadmz commented at 2:11 PM on April 27, 2023: member

    This issue is unlikely to be fixed in Bitcoin Core. We'll close for now, but feel free to open another issue or pull request with a fix.

  6. pinheadmz closed this on Apr 27, 2023

  7. bitcoin locked this on Apr 26, 2024

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 15:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me