rust-bitcoin-unsafe-fast/primitives/src
merge-script 6c286e32d4
Merge rust-bitcoin/rust-bitcoin#4089: Script improvements
5680b4e870 Refer to `Script{Buf}` as `Self` where relevant (Martin Habovstiak)
ce55dd5b70 Make `ScriptHash` & `WScriptHash` obey sanity rule (Martin Habovstiak)
9ec9adc71d Add a note about Electrum's script hashes (Martin Habovstiak)
82f553aada Expose `ScriptBuf`'s `capacity` (Martin Habovstiak)
6b9d439dc1 Remove stale FIXME comments (Martin Habovstiak)
0567e6fe1d Put `#[inline]` on most `Script{Buf}` methods (Martin Habovstiak)
b7e2af1b6b Implement `Arbitrary` for `&'a Script` (Martin Habovstiak)
bca2864084 Move `Deref{Mut}` from common module to `owned` (Martin Habovstiak)
3b15e900f0 Add `const` to some `Script` methods (Martin Habovstiak)
277223da6a Make `Script` and `ScriptBuf` obey sanity rules (Martin Habovstiak)

Pull request description:

  This implements various improvements related to `Script`. Please refer to the individual commits for details.

  This is a part of #4059

ACKs for top commit:
  tcharding:
    ACK 5680b4e870
  apoelstra:
    ACK 5680b4e870ba3b7340432256c24d37d2b6ead15a; successfully ran local tests

Tree-SHA512: 5daa8bf6c0b439a579d31d23944077e4a7fa89e14052003d2b81c745f225147f8f6f693d068e0567830027cefea7dda2516596da632bc817199352fa29af0a9b
2025-02-24 21:50:48 +00:00
..
locktime Remove rust-ordered dependency 2025-02-18 13:36:07 +11:00
script Refer to `Script{Buf}` as `Self` where relevant 2025-02-20 19:30:07 +01:00
block.rs Add a test for Header size 2025-02-06 14:28:22 +00:00
lib.rs Add missing re-exports to primitives crate root 2025-02-07 08:01:46 +00:00
merkle_tree.rs Remove hex string trait bounds from GeneralHash 2024-11-13 14:01:13 +11:00
opcodes.rs Add test to opcodes 2025-02-06 16:30:52 +00:00
pow.rs Add tests to CompactTarget 2025-02-06 17:06:41 +00:00
sequence.rs Test sequence formatting 2025-02-07 17:50:45 +00:00
taproot.rs Remove hex string trait bounds from GeneralHash 2024-11-13 14:01:13 +11:00
transaction.rs Make transaction::Version field private 2025-02-24 06:54:21 +07:00
witness.rs Abstract out "debug-print hex fields" using WrapDebug 2025-02-20 10:56:12 -03:00