This adds a set of wallet-focused BIP341 test vectors covering:
- scriptPubKey computation (from internal key & script tree)
- control block construction (for script path spending)
- key path spending (sighash computation / deterministic signing)
It is primarily aimed at constructions that are useful right now, and excludes for example signing with annex for that reason. BIP342 semantics are not covered directly, as the scope of that is extremely wide, but control block computation is, plus most of sighash computation is shared with BIP341 key path spending.
These test vectors are generated through a scenario in https://github.com/bitcoin/bitcoin/pull/23394, where an actual (regtest) chain is constructed and validated containing the relevant transactions, and also implemented there directly as a unit test.