rust-bitcoin-unsafe-fast/bitcoin
merge-script 18bdd92d34
Merge rust-bitcoin/rust-bitcoin#3216: ecdsa: Improve error types
9fb5edb39e ecdsa: Improve error types (Tobin C. Harding)

Pull request description:

  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 `FromStrError` 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

ACKs for top commit:
  Kixunil:
    ACK 9fb5edb39e
  apoelstra:
    ACK 9fb5edb39e successfully ran local tests

Tree-SHA512: 3b3ae31887d603f1739d261b491b99f7847987f94dbbfefb9aa84d4250736eba2d007d28746bbb064946d3055e4cca01510677bf2cdbb11bbf83d7388dbd2620
2024-08-24 17:52:08 +00: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 Merge rust-bitcoin/rust-bitcoin#3216: ecdsa: Improve error types 2024-08-24 17:52:08 +00: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