rust-bitcoin-unsafe-fast/bitcoin/src/crypto
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
..
ecdsa.rs ecdsa: Improve error types 2024-08-23 16:08:47 +10:00
key.rs Merge rust-bitcoin/rust-bitcoin#3100: Bump MSRV to 1.63 2024-07-28 21:11:28 +00:00
mod.rs Removed //! spare line at end of headers 2024-05-16 09:59:55 +01:00
sighash.rs Reduce API surface of tagged wrapped hash types 2024-08-22 10:07:58 +10:00
taproot.rs Bump MSRV to 1.63 2024-07-27 07:24:32 +02:00