mirror of
https://github.com/bitcoin/bips.git
synced 2026-07-27 18:13:38 +00:00
p2mr test vectors
This rust project contains the test vectors for BIP-360
Run Test Vectors
These test vectors are being developed in conjunction with forks of rust-bitcoin and rust-miniscript customized with p2mr functionality.
-
environment variables
// Specify Bitcoin network used when generating bip350 (bech32m) address // Options: regtest, testnet, signet // Default: mainnet $ export BITCOIN_NETWORK=<regtest | testnet | signet > -
run a specific test:
$ cargo test test_p2mr_single_leaf_script_tree -- --nocapture
Local Development
All P2MR/PQC enabled bitcoin crates are temporarily available in a custom crate registry at: https://crates.denver.space.
These crates will be made available in crates.io in the near future.
Subsequently, you will need to execute the following at the root of your rust workspace:
mkdir .cargo \
&& echo '[registries.kellnr-denver-space]
index = "sparse+https://crates.denver.space/api/v1/crates/"' > .cargo/config
Afterwards, for all P2MR/PQC enabled dependencies used in your project, include a "registry" similar to the following:
bitcoin = { version="0.32.6", registry = "kellnr-denver-space" }