rust-bitcoin-unsafe-fast/bitcoin
Tobin C. Harding 104dee9376
Debug assert that target != zero in difficulty calc
The `difficulty` calculation requires dividing a target value by `self`.
Add an assertion that `self` is not zero to help devs debug this.

Note that this should never really be hit, but its possible there is a
bug somewhere causing the target to be set to zero - so this may help
debugging.

Also, add panics section to rustdocs.
2024-04-02 11:40:46 +11:00
..
contrib ci: delete *test.sh files 2024-02-28 20:45:56 +00:00
embedded base58: Re-name crate to base58ck 2024-03-19 09:00:46 +11:00
examples 2024-03-31 automated rustfmt nightly 2024-03-31 01:03:18 +00:00
src Debug assert that target != zero in difficulty calc 2024-04-02 11:40:46 +11:00
tests 2024-03-31 automated rustfmt nightly 2024-03-31 01:03:18 +00:00
CHANGELOG.md Remove no-std feature 2023-12-06 09:54:33 +11:00
Cargo.toml internals: Bump version to 0.3.0 2024-03-27 09:44:30 +11:00
build.rs Bump MSRV to Rust version 1.56.1 2023-11-23 06:20:02 +11:00