rust-bitcoin-unsafe-fast/bitcoin/tests
Tobin C. Harding c27b95fb0d
Make script to/from hex use consensus encoding
I'm not sure why we do not use consensus encoding currently for encoding
and decoding scripts to/from hex strings. Many tests include hard coded
hex which do not include the length prefix.

- Add a pair of encoding functions to encode/decode to/from hex without
the length prefix.
- Make `to_hex` and `from_hex` expect the length prefix i.e., use
consensus encoding.

This makes the API easier to use because the various encoding APIs can
be use together now eg `consensus::encode_hex` and `ScriptBuf::from_hex`.
2025-04-28 13:39:44 +10:00
..
data Use MAX_MONEY in serde regression test 2025-01-24 12:15:13 +11:00
bip_174.rs Make script to/from hex use consensus encoding 2025-04-28 13:39:44 +10:00
psbt-sign-taproot.rs 2025-04-13 automated rustfmt nightly 2025-04-13 02:50:07 +00:00
serde.rs Make script to/from hex use consensus encoding 2025-04-28 13:39:44 +10:00
serde_opcodes.rs Remove usage of blockdata from paths 2024-06-20 12:00:22 +10:00