This PR adds code to test/functional/feature_taproot.py
which runs through a (deterministic) scenario covering several aspects of the wallet side of BIP341 (scriptPubKey computation from keys/scripts, control block computation, key path spending), with the ability to output test vectors in mediawiki format based on this scenario. The generated tests are then also included directly in src/test/script_tests.cpp
and src/test/script_standard_tests.cpp
.
The test vectors generated here were added to BIP341 in https://github.com/bitcoin/bips/pull/1225