Add unit tests for Taproot code in src/script/interpreter.cpp #23279

issue practicalswift openend this issue on October 14, 2021
  1. practicalswift commented at 12:48 pm on October 14, 2021: contributor

    The Taproot code in src/script/interpreter.cpp is covered by our functional tests (test/functional/feature_taproot.py and test/functional/wallet_taproot.py), but we don’t have any unit test coverage for this code.

    Unit test coverage for src/script/interpreter.cpp can be found here:

    These functions in src/script/interpreter.cpp are currently not covered by our unit tests:

    • EvalChecksigTapscript
    • HandleMissingData
    • SignatureHashSchnorr
    • GenericTransactionSignatureChecker<T>::VerifySchnorrSignature
    • GenericTransactionSignatureChecker<T>::CheckSchnorrSignature
    • ComputeTaprootMerkleRoot
    • SigVersion::TAPSCRIPT code paths in ExecuteWitnessScript
    • Taproot code paths in VerifyWitnessProgram

    It would be nice to have C++ unit tests covering this code in addition to the Python functional tests.

  2. fanquake added the label Tests on Oct 14, 2021
  3. MarcoFalke commented at 12:53 pm on October 14, 2021: member
  4. david-bakin commented at 3:47 pm on April 11, 2022: contributor
    I’m working on this … updates shortly.
  5. sipa commented at 3:51 pm on April 11, 2022: member
  6. david-bakin commented at 2:05 am on May 3, 2022: contributor
    … still working on this … PR shortly …
  7. david-bakin referenced this in commit 5807b4c1b3 on May 4, 2022
  8. david-bakin referenced this in commit d34cbcef50 on May 9, 2022
  9. david-bakin referenced this in commit d692ae7b31 on May 21, 2022
  10. david-bakin referenced this in commit fedc037dba on May 24, 2022
  11. david-bakin referenced this in commit 5d6148b4e4 on Jun 5, 2022
  12. david-bakin referenced this in commit 376afb4b60 on Jun 5, 2022
  13. david-bakin referenced this in commit 047a9f0774 on Jun 5, 2022
  14. david-bakin referenced this in commit eeefec3435 on Jun 5, 2022

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: 2024-11-24 09:12 UTC

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