rust-bitcoin-unsafe-fast/primitives/src
merge-script a9ddac178d
Merge rust-bitcoin/rust-bitcoin#4316: Improve the script hex APIs
5d5a19793a Run the formatter (Tobin C. Harding)
2b72f1f30b Make Lower/Upper hex print scripts with len prefix (Tobin C. Harding)
c27b95fb0d Make script to/from hex use consensus encoding (Tobin C. Harding)
f4bc58dc48 bitcoin: Add a script encoding example (Tobin C. Harding)

Pull request description:

  Done while investigating #3910 - this PR is quite invasive.

  - Patch 1 adds an example that shows the current behaviour of various API calls for converting scripts to/from hex.
  - Patch 2 adds a pair of functions that do not use the length prefix and makes script to/from_hex use the prefix.
  - Patch 3 makes `LowerHex` and `UpperHex` use the len prefix also
  - Patch 4 runs the formatter

  Explicitly keeps serde untouched - i.e., without the len prefix

ACKs for top commit:
  apoelstra:
    ACK 5d5a19793aae73ff09d7064455a1a995eb796c28; successfully ran local tests

Tree-SHA512: dbbec372ea7b01818fce68ffb807a4531f068e10147e8bedf37b77f66a068a628e380549c379c061b868973e97806ada59729248b03bbd1cf6809f6098170cb6
2025-04-28 21:01:50 +00:00
..
locktime Merge rust-bitcoin/rust-bitcoin#4344: Locktime MtpAndHeight 2025-04-28 13:49:12 +00:00
script Make Lower/Upper hex print scripts with len prefix 2025-04-28 13:43:07 +10:00
block.rs 2025-04-27 automated rustfmt nightly 2025-04-27 01:36:56 +00:00
lib.rs Merge rust-bitcoin/rust-bitcoin#4219: Rename then new `Timestamp` type 2025-03-13 15:13:31 +00:00
merkle_tree.rs primitives: Make hex optional 2025-04-11 10:55:34 +10:00
opcodes.rs 2025-03-16 automated rustfmt nightly 2025-03-16 01:25:25 +00:00
pow.rs primitives: Enable pedantic lints 2025-03-06 10:58:17 +11:00
sequence.rs Use a consistent rustdoc heading level of H1 `#` 2025-04-22 13:06:32 +01:00
taproot.rs Move taproot back to bitcoin crate 2025-02-26 15:45:49 +11:00
transaction.rs Merge rust-bitcoin/rust-bitcoin#4383: rustdocs: Make headings consistent 2025-04-24 16:44:17 +00:00
witness.rs 2025-04-27 automated rustfmt nightly 2025-04-27 01:36:56 +00:00