mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-06 21:19:35 +01:00
f1c33ee4actests: implement BIP341 test vectors (Pieter Wuille)ac3037df11tests: BIP341 test vector generation (Pieter Wuille)ca83ffc2eatests: add deterministic signing mode to ECDSA (Pieter Wuille)c98c53f20ctests: abstract out precomputed BIP341 signature hash elements (Pieter Wuille)a5bde018b4tests: give feature_taproot access to sighash preimages (Pieter Wuille)5140825096tests: add more fields to TaprootInfo (Pieter Wuille)2478c6730aMake signing follow BIP340 exactly w.r.t. aux randomness (Pieter Wuille) Pull request description: 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`. I intend to add these test vectors to BIP341 itself: https://github.com/bitcoin/bips/pull/1225 ACKs for top commit: laanwj: Code review ACKf1c33ee4acTree-SHA512: fcf7109539cb214d3190516b205cd32d2b1b452f14aa66f4107acfaa8bfc7d368f626857f1935665a4342eabc0b9ee8aba608a7c0a2494bec0b498e723439c9d