0e2a5e448f
tests: dumping and minimizing of script assets data (Pieter Wuille)4567ba034c
tests: add generic qa-asset-based script verification unit test (Pieter Wuille)f06e6d0345
tests: functional tests for Schnorr/Taproot/Tapscript (Pieter Wuille)3c226639eb
tests: add BIP340 Schnorr signature support to test framework (Pieter Wuille)206fb180ec
--- [TAPROOT] Tests --- (Pieter Wuille)d7ff237f29
Activate Taproot/Tapscript on regtest (BIP 341, BIP 342) (Pieter Wuille)e9a021d7e6
Make Taproot spends standard + policy limits (Pieter Wuille)865d2c37e2
--- [TAPROOT] Regtest activation and policy --- (Pieter Wuille)72422ce396
Implement Tapscript script validation rules (BIP 342) (Johnson Lau)330de894a9
Use ScriptExecutionData to pass through annex hash (Pieter Wuille)8bbed4b7ac
Implement Taproot validation (BIP 341) (Pieter Wuille)0664f5fe1f
Support for Schnorr signatures and integration in SignatureCheckers (BIP 340) (Pieter Wuille)5de246ca81
Implement Taproot signature hashing (BIP 341) (Johnson Lau)9eb590894f
Add TaggedHash function (BIP 340) (Pieter Wuille)450d2b2371
--- [TAPROOT] BIP340/341/342 consensus rules --- (Pieter Wuille)5d62e3a68b
refactor: keep spent outputs in PrecomputedTransactionData (Pieter Wuille)8bd2b4e784
refactor: rename scriptPubKey in VerifyWitnessProgram to exec_script (Pieter Wuille)107b57df9f
scripted-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: reACK0e2a5e448f
benthecarman: reACK0e2a5e4
kallewoof: reACK0e2a5e448f
jonasnick: ACK0e2a5e448f
almost only looked at bip340/libsecp related code jonatack: ACK0e2a5e448f
modulo the last four commits (tests) that I plan to finish reviewing tomorrow fjahr: reACK0e2a5e448f
achow101: ACK0e2a5e448f
Tree-SHA512: 1b00314450a2938a22bccbb4e177230cf08bd365d72055f9d526891f334b364c997e260c10bc19ca78440b6767712c9feea7faad9a1045dd51a5b96f7ca8146e
CI Scripts
This directory contains scripts for each build step in each build stage.
Running a Stage Locally
Be aware that the tests will be built and run in-place, so please run at your own risk. If the repository is not a fresh git clone, you might have to clean files from previous builds or test runs first.
The ci needs to perform various sysadmin tasks such as installing packages or writing to the user's home directory. While most of the actions are done inside a docker container, this is not possible for all. Thus, cache directories, such as the depends cache, previous release binaries, or ccache, are mounted as read-write into the docker container. While it should be fine to run the ci system locally on you development box, the ci scripts can generally be assumed to have received less review and testing compared to other parts of the codebase. If you want to keep the work tree clean, you might want to run the ci system in a virtual machine with a Linux operating system of your choice.
To allow for a wide range of tested environments, but also ensure reproducibility to some extent, the test stage
requires docker
to be installed. To install all requirements on Ubuntu, run
sudo apt install docker.io bash
To run the default test stage,
./ci/test_run_all.sh
To run the test stage with a specific configuration,
FILE_ENV="./ci/test/00_setup_env_arm.sh" ./ci/test_run_all.sh
Configurations
The test files (FILE_ENV
) are constructed to test a wide range of
configurations, rather than a single pass/fail. This helps to catch build
failures and logic errors that present on platforms other than the ones the
author has tested.
Some builders use the dependency-generator in ./depends
, rather than using
the system package manager to install build dependencies. This guarantees that
the tester is using the same versions as the release builds, which also use
./depends
.
If no FILE_ENV
has been specified or values are left out, 00_setup_env.sh
is used as the default configuration with fallback values.
It is also possible to force a specific configuration without modifying the file. For example,
MAKEJOBS="-j1" FILE_ENV="./ci/test/00_setup_env_arm.sh" ./ci/test_run_all.sh
The files starting with 0n
(n
greater than 0) are the scripts that are run
in order.
Cache
In order to avoid rebuilding all dependencies for each build, the binaries are cached and re-used when possible. Changes in the dependency-generator will trigger cache-invalidation and rebuilds as necessary.