rust-bitcoin-unsafe-fast/primitives/src
Erick Cestari 4eb3177fab Abstract out "debug-print hex fields" using WrapDebug
This commit introduces `WrapDebug` in `internals` and updates `Witness`
debug implementation to use it. The previous `DebugElements` struct has
been removed in favor of an ad-hoc closure inside `WrapDebug`, which
formats witness elements as a debug list of hex-encoded values.

By abstracting out the "debug-print hex fields" pattern, we reduce
code duplication and improve maintainability.
2025-02-20 10:56:12 -03:00
..
locktime Remove rust-ordered dependency 2025-02-18 13:36:07 +11:00
script Implement Default for Script 2025-02-13 03:22:37 +05:30
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 2025-02-16 automated rustfmt nightly 2025-02-16 01:21:38 +00:00
witness.rs Abstract out "debug-print hex fields" using WrapDebug 2025-02-20 10:56:12 -03:00