rust-bitcoin-unsafe-fast/bitcoin/tests/data
Tobin C. Harding 4621d2bde1
Modify locktime serde implemenations
The `units::locktime` types are used for two things:

- They are the inner types of `primitives` `LockTime`s
- They are used ephemerally for checking satisfaction

Neither of these use cases requires `serde` impls for the `units` types.
Since we are trying to release 1.0 with minimal amounts of code we
should remove them.

For `LockTime`s that need to be stored on disk or go over the wire we
can manually implement the `serde` traits. For `absolute::LockTime` this
is done already and there is no reason the `relative::LockTime` impl
cannot be the same [0]. This differs from the current `serde` trait impls
but we have already decided that in 0.33 we are going to accept breakage
and direct users to use 0.32 to handle it.

- Remove `serde` stuff from `units::locktime`
- Manually implement `serde` traits on `relative::LockTime`
- Fix the regression test to use the new format

While we are at it use a uniform terse call in `serialize`.

[0] This is because there is an unambiguous encoding for the whole set
of locktimes - consensus encoding.
2025-06-01 14:07:33 +01:00
..
serde Modify locktime serde implemenations 2025-06-01 14:07:33 +01:00
README.md chore: format and standardize all markdowns files 2024-04-27 06:29:23 -03:00
bip341_tests.json Move test_data/* tests/data 2022-10-27 10:40:44 -04:00
block_13b8a.hex Move hex data to tests/data 2023-02-10 11:53:02 +11:00
blockfilters.json Move test_data/* tests/data 2022-10-27 10:40:44 -04:00
combine_psbt_hex Test PSBT integration 2022-10-27 10:40:45 -04:00
create_psbt_hex Test PSBT integration 2022-10-27 10:40:45 -04:00
extract_tx_hex Test PSBT integration 2022-10-27 10:40:45 -04:00
finalize_psbt_hex Test PSBT integration 2022-10-27 10:40:45 -04:00
huge_witness.hex Add a test parsing transaction with a huge witness 2022-11-01 14:27:38 +01:00
legacy_sighash.json Move test_data/* tests/data 2022-10-27 10:40:44 -04:00
lex_combine_psbt_hex Test PSBT integration 2022-10-27 10:40:45 -04:00
lex_psbt_1_hex Test PSBT integration 2022-10-27 10:40:45 -04:00
lex_psbt_2_hex Test PSBT integration 2022-10-27 10:40:45 -04:00
mainnet_block_000000000000000000000c835b2adcaedc20fdf6ee440009c249452c726dafae.raw Move test_data/* tests/data 2022-10-27 10:40:44 -04:00
merkle_block.hex Move hex data to tests/data 2023-02-10 11:53:02 +11:00
previous_tx_0_hex Test PSBT integration 2022-10-27 10:40:45 -04:00
previous_tx_1_hex Test PSBT integration 2022-10-27 10:40:45 -04:00
psbt1.hex Move test_data/* tests/data 2022-10-27 10:40:44 -04:00
psbt2.hex Move test_data/* tests/data 2022-10-27 10:40:44 -04:00
psbt_combined.hex Move test_data/* tests/data 2022-10-27 10:40:44 -04:00
psbt_fuzz1.hex Fix psbt fuzz crash 2024-11-26 21:35:14 -08:00
psbt_fuzz2.hex Fix psbt fuzz crash 2024-11-26 21:35:14 -08:00
sign_1_psbt_hex Test PSBT integration 2022-10-27 10:40:45 -04:00
sign_2_psbt_hex Test PSBT integration 2022-10-27 10:40:45 -04:00
testnet_block_000000000000045e0b1660b6445b5e5c5ab63c9a4f956be7e1e69be04fa4497b.raw Move test_data/* tests/data 2022-10-27 10:40:44 -04:00
update_1_psbt_hex Test PSBT integration 2022-10-27 10:40:45 -04:00
update_2_psbt_hex Test PSBT integration 2022-10-27 10:40:45 -04:00

README.md

Test vector data

This file contains data (hex strings) taken from BIP test vectors.