rust-bitcoin-unsafe-fast/bitcoin
Tobin C. Harding 9fb5edb39e
ecdsa: Improve error types
There are a couple of issues around the ECDSA signature decoding /
parsing code. We have duplicate code in `from_str` and `from_slice`
and both use the same error type even though it is impossible to get a
hex error in `from_slice`.

Create two errors:

- A `DecodeError` returned by `from_slice`
- A `ParseSignatureError` that has a decode variant and a hex variant

Call through to `from_slice` after parsing hex into a byte vector.

Removes an instance of `unreachable!`.

Fix: #1193
2024-08-23 16:08:47 +10:00
..
contrib Bump MSRV to 1.63 2024-07-27 07:24:32 +02:00
embedded Move opcodes to primitives 2024-07-09 15:26:33 +10:00
examples Introduce two extensions traits for ScriptBuf 2024-08-20 09:34:34 +10:00
src ecdsa: Improve error types 2024-08-23 16:08:47 +10:00
tests Merge rust-bitcoin/rust-bitcoin#3164: Extension traits for `ScriptBuf` 2024-08-20 16:32:29 +00:00
CHANGELOG.md Capitalize Merkle 2024-07-01 17:42:43 +01:00
Cargo.toml Remove misleading version metadata 2024-08-20 09:07:02 +02:00