rust-bitcoin-unsafe-fast/bitcoin
Tobin C. Harding bbffa3db43
Remove the IO error from DecodeError
The `DecodeError` (badly named) consensus decodes an object from an
iterator that implements `Read`. The `Read` impl never returns a real IO
error, we use the `io::Error` to temporarily wrap the error returned by
the inner iterator and unwrap it in `IterReader::decode`. As such there
is no reason for the `DecodeError` to hold an `encode::Error`, it can
hold an `encode::ParseError`.

The value of this change is easily seen in the removal of calls to
`unreachable`.
2024-10-22 12:39:07 +11:00
..
contrib Remove the SliceIndex implementation from hash types 2024-10-02 10:18:45 +10:00
embedded Move opcodes to primitives 2024-07-09 15:26:33 +10:00
examples Move Witness to primitives 2024-10-18 14:02:03 +11:00
src Remove the IO error from DecodeError 2024-10-22 12:39:07 +11:00
tests psbt: Use u64 for key type 2024-10-10 11:37:40 +11:00
CHANGELOG.md Update CHANGELOG files 2024-10-05 15:45:28 +10:00
Cargo.toml bitcoin: Set version to 0.33.0-alpha 2024-10-17 08:44:40 +11:00