rust-bitcoin-unsafe-fast/bitcoin/src
merge-script 779768eff9
Merge rust-bitcoin/rust-bitcoin#3769: Change method return type for to_unsigned()
e13355318e Add From impl (yancy)
364e9ff775 Change method return type (yancy)
fdf3336ed5 Add unchecked variant (yancy)

Pull request description:

  Any SignedAmount can now be cast to Amount since the range is the same.  Specifically, the range for SignedAmount is (- 21 million, 21 million) while the range for Amount is (0, 21 million).  Therefore any value from Amount can be cast to a SignedAmount and it will work.  Note it's not the same and still requires checking when going from SignedAmount to Amount since Amount can't handle the negative range.

ACKs for top commit:
  tcharding:
    ACK e13355318e

Tree-SHA512: c016b51bdd87a12eb09d9c1a82699dad1e866bf96bd3235eeb131f216f02422acb992ddb3a8135af00bbc10e240178fde5e37fb7860d9e6eaf433cf917d4d16a
2024-12-29 14:58:47 +00:00
..
address Make capitalization of SegWit uniform in strings 2024-12-17 14:49:01 +00:00
blockdata Change method return type 2024-12-24 11:31:49 -06:00
consensus Make capitalization of SegWit uniform in strings 2024-12-17 14:49:01 +00:00
crypto Make capitalization of SegWit uniform in strings 2024-12-17 14:49:01 +00:00
merkle_tree bitcoin: fix typo 2024-12-23 20:44:18 +08:00
network Update CompactTarget::from_next_work_required to take timespan as i64 2024-11-27 11:27:22 -06:00
p2p Remove double spacing in rustdocs 2024-12-17 14:21:12 +00:00
psbt refactor: Change from u64 to Amount 2024-12-23 13:03:53 -06:00
taproot Set avoid-breaking-exported-api to false 2024-12-11 10:11:50 +11:00
bip32.rs Set avoid-breaking-exported-api to false 2024-12-11 10:11:50 +11:00
bip152.rs Move Block to primitives 2024-11-15 07:16:21 +11:00
bip158.rs Merge rust-bitcoin/rust-bitcoin#3611: Hashes: Make `hex` dependency optional 2024-11-15 18:31:42 +00:00
consensus_validation.rs Introduce Transaction extension traits 2024-10-30 12:28:52 +11:00
hash_types.rs Unify deprecated note field format 2024-10-15 15:16:01 +01:00
internal_macros.rs Set avoid-breaking-exported-api to false 2024-12-11 10:11:50 +11:00
lib.rs Merge rust-bitcoin/rust-bitcoin#3746: bitcoin: Improve rustdocs on extern crates 2024-12-14 17:03:56 +00:00
policy.rs Make capitalization of SegWit uniform in rustdocs 2024-12-17 14:28:28 +00:00
pow.rs Fix typo in from_next_work_required documentation 2024-11-27 11:27:26 -06:00
serde_utils.rs Elide more lifetimes 2024-10-28 15:22:13 +11:00
sign_message.rs Standardize wording to `constructs a new` 2024-11-05 13:02:26 +00:00