7bf478373a
The error returned when parsing amount had a `Negative` variant which was weird/unreachable when parsing `SignedAmount`. Also weirdly, parsing would return `TooBig` when the amount was negative - too low. To resolve this we merge them into one `OutOfRange` variant that nuges the consumers to make principled decisions and print error messages as amounts being more than or less than a specific value which is easier to understand for the users. Notably, the API still allows getting information about which type was parsed and which bound was crossed but in a less obvious way. This is OK since users who have a very good reason can use this information but most won't. Closes #2266 |
||
---|---|---|
.. | ||
contrib | ||
src | ||
Cargo.toml | ||
README.md |
README.md
Bitcoin Units
This crate provides basic Bitcoin numeric units such as Amount
.
Minimum Supported Rust Version (MSRV)
This library should always compile with any combination of features on Rust 1.56.1.
Licensing
The code in this project is licensed under the Creative Commons CC0 1.0 Universal license. We use the SPDX license list and SPDX IDs.