Merge #19953: Implement BIP 340-342 validation (Schnorr/taproot/tapscript)
0e2a5e448ftests: dumping and minimizing of script assets data (Pieter Wuille)4567ba034ctests: add generic qa-asset-based script verification unit test (Pieter Wuille)f06e6d0345tests: functional tests for Schnorr/Taproot/Tapscript (Pieter Wuille)3c226639ebtests: add BIP340 Schnorr signature support to test framework (Pieter Wuille)206fb180ec--- [TAPROOT] Tests --- (Pieter Wuille)d7ff237f29Activate Taproot/Tapscript on regtest (BIP 341, BIP 342) (Pieter Wuille)e9a021d7e6Make Taproot spends standard + policy limits (Pieter Wuille)865d2c37e2--- [TAPROOT] Regtest activation and policy --- (Pieter Wuille)72422ce396Implement Tapscript script validation rules (BIP 342) (Johnson Lau)330de894a9Use ScriptExecutionData to pass through annex hash (Pieter Wuille)8bbed4b7acImplement Taproot validation (BIP 341) (Pieter Wuille)0664f5fe1fSupport for Schnorr signatures and integration in SignatureCheckers (BIP 340) (Pieter Wuille)5de246ca81Implement Taproot signature hashing (BIP 341) (Johnson Lau)9eb590894fAdd TaggedHash function (BIP 340) (Pieter Wuille)450d2b2371--- [TAPROOT] BIP340/341/342 consensus rules --- (Pieter Wuille)5d62e3a68brefactor: keep spent outputs in PrecomputedTransactionData (Pieter Wuille)8bd2b4e784refactor: rename scriptPubKey in VerifyWitnessProgram to exec_script (Pieter Wuille)107b57df9fscripted-diff: put ECDSA in name of signature functions (Pieter Wuille)f8c099e220--- [TAPROOT] Refactors --- (Pieter Wuille) Pull request description: This is an implementation of the Schnorr/taproot consensus rules proposed by BIPs [340](https://github.com/bitcoin/bips/blob/master/bip-0340.mediawiki), [341](https://github.com/bitcoin/bips/blob/master/bip-0340.mediawiki), and [342](https://github.com/bitcoin/bips/blob/master/bip-0340.mediawiki). See the list of commits [below](https://github.com/bitcoin/bitcoin/pull/19953#issuecomment-691815830). No signing or wallet support of any kind is included, as testing is done entirely through the Python test framework. This is a successor to https://github.com/bitcoin/bitcoin/pull/17977 (see discussion following [this comment](https://github.com/bitcoin/bitcoin/pull/17977#issuecomment-682285983)), and will have further changes squashed/rebased. The history of this PR can be found in #19997. ACKs for top commit: instagibbs: reACK https://github.com/bitcoin/bitcoin/pull/19953/commits/0e2a5e448f426219a6464b9aaadcc715534114e6 benthecarman: reACK0e2a5e4kallewoof: reACK0e2a5e448fjonasnick: ACK0e2a5e448falmost only looked at bip340/libsecp related code jonatack: ACK0e2a5e448fmodulo the last four commits (tests) that I plan to finish reviewing tomorrow fjahr: reACK0e2a5e448fachow101: ACK0e2a5e448fTree-SHA512: 1b00314450a2938a22bccbb4e177230cf08bd365d72055f9d526891f334b364c997e260c10bc19ca78440b6767712c9feea7faad9a1045dd51a5b96f7ca8146e
This commit is contained in:
44 files changed
+2985
-121
No files matched your search
@@ -81,11 +81,10 @@ else
|
||||
fi
|
||||
|
||||
if [ ! -d ${DIR_QA_ASSETS} ]; then
|
||||
if [ "$RUN_FUZZ_TESTS" = "true" ]; then
|
||||
DOCKER_EXEC git clone https://github.com/bitcoin-core/qa-assets ${DIR_QA_ASSETS}
|
||||
fi
|
||||
DOCKER_EXEC git clone --depth=1 https://github.com/bitcoin-core/qa-assets ${DIR_QA_ASSETS}
|
||||
fi
|
||||
export DIR_FUZZ_IN=${DIR_QA_ASSETS}/fuzz_seed_corpus/
|
||||
export DIR_UNIT_TEST_DATA=${DIR_QA_ASSETS}/unit_test_data/
|
||||
|
||||
DOCKER_EXEC mkdir -p "${BASE_SCRATCH_DIR}/sanitizer-output/"
|
||||
|
||||
|
||||
@@ -23,13 +23,13 @@ fi
|
||||
|
||||
if [ "$RUN_UNIT_TESTS" = "true" ]; then
|
||||
BEGIN_FOLD unit-tests
|
||||
DOCKER_EXEC LD_LIBRARY_PATH=$DEPENDS_DIR/$HOST/lib make $MAKEJOBS check VERBOSE=1
|
||||
DOCKER_EXEC DIR_UNIT_TEST_DATA=${DIR_UNIT_TEST_DATA} LD_LIBRARY_PATH=$DEPENDS_DIR/$HOST/lib make $MAKEJOBS check VERBOSE=1
|
||||
END_FOLD
|
||||
fi
|
||||
|
||||
if [ "$RUN_UNIT_TESTS_SEQUENTIAL" = "true" ]; then
|
||||
BEGIN_FOLD unit-tests-seq
|
||||
DOCKER_EXEC LD_LIBRARY_PATH=$DEPENDS_DIR/$HOST/lib "${BASE_BUILD_DIR}/bitcoin-*/src/test/test_bitcoin*" --catch_system_errors=no -l test_suite
|
||||
DOCKER_EXEC DIR_UNIT_TEST_DATA=${DIR_UNIT_TEST_DATA} LD_LIBRARY_PATH=$DEPENDS_DIR/$HOST/lib "${BASE_BUILD_DIR}/bitcoin-*/src/test/test_bitcoin*" --catch_system_errors=no -l test_suite
|
||||
END_FOLD
|
||||
fi
|
||||
|
||||
|
||||
Reference in new issue
Block a user