rust-bitcoin-unsafe-fast/bitcoin
Tobin C. Harding d45dbef3e7
Manually implement Debug on Witness
The current derived debug implementation on `Witness` prints the content
field as an array of integers. We can do better than this by manually
implementing `Debug`.

With this applied `Witness` is printed as follows: (first line is `{:?}`
and the next is `{:#?}`):

Using `{:?}`:
```
Witness: { indices: 3, indices_start: 8, witnesses: [[0x00], [0x02, 0x03], [0x04, 0x05]] }
```

Using `{:#?}`:
```
Witness: {
    indices: 3,
    indices_start: 8,
    witnesses: [
        [0x00],
        [0x02, 0x03],
        [0x04, 0x05],
     ],
}
```
2023-07-08 11:28:04 +10:00
..
contrib Fix incorrect comment in ci script 2023-06-20 13:34:38 +10:00
embedded embedded: Document how to clean up linker flags 2023-05-26 14:39:14 +10:00
examples Added examples for sighash computations 2023-06-20 02:07:21 -07:00
src Manually implement Debug on Witness 2023-07-08 11:28:04 +10:00
tests Use Amount type for TxOut value field 2023-05-04 17:09:08 +02:00
CHANGELOG.md Add changelo entry for removal of FromHex 2023-05-18 14:18:42 +10:00
Cargo.toml Implement support for `alloc`-free parse errors 2023-06-04 21:15:37 +02:00
build.rs Remove rust_v_1_46 2023-03-23 08:27:10 +11:00