rust-bitcoin-unsafe-fast/bitcoin/tests/data/serde
Tobin C. Harding 2f656f77ba
psbt: Use u64 for key type
Currently we use `u8` for key type but it was pointed out that we should
be using a `u64` and encoding it as a compact type. The reason our code
works now is because the compact type encoding for a `u8` (less than
253) is the same as for a `u8`.

This breaks the `serde` impl, as shown by changes to the regression tests.
2024-10-10 11:37:40 +11:00
..
README.md chore: format and standardize all markdowns files 2024-04-27 06:29:23 -03:00
absolute_lock_time_blocks_bincode locktime: unify serde impls 2022-12-11 18:48:56 +00:00
absolute_lock_time_seconds_bincode locktime: unify serde impls 2022-12-11 18:48:56 +00:00
address_bincode
block_bincode
child_number_bincode
control_block_bincode
control_block_hex
ecdsa_sig_bincode
ecdsa_sig_hex
extended_priv_key
extended_priv_key_bincode
extended_pub_key
extended_pub_key_bincode
private_key_bincode
proprietary_key_bincode psbt: Use u64 for key type 2024-10-10 11:37:40 +11:00
psbt_bincode psbt: Use u64 for key type 2024-10-10 11:37:40 +11:00
public_key_bincode
public_key_hex
raw_pair_bincode psbt: Use u64 for key type 2024-10-10 11:37:40 +11:00
relative_lock_time_blocks_bincode
relative_lock_time_seconds_bincode
script_bincode
taproot_sig_bincode Rename schnorr module to taproot 2023-02-20 12:58:09 +11:00
taproot_sig_hex Rename schnorr module to taproot 2023-02-20 12:58:09 +11:00
taptree_bincode Introduce Hidden leaves in ScriptLeaves 2023-03-01 16:58:24 -08:00
transaction_bincode
transaction_ser
txin_bincode
txin_ser
txout_bincode
u256_bincode
uint128_bincode
uint256_bincode
witness_bincode

README.md

Serialization input/output

Files here contain hex strings and binary data representing types used for regression testing.

  • *_hex: consensus encoded types represented as hex strings
  • *_ser: consensus encoded types represented as binary data
  • *_bincode: types serialized with serde as bincode

We consensus deserialize, serde serialize, then check against the expected data to verify no serde regressions have been introduced.