rust-bitcoin-unsafe-fast/bitcoin/src
Andrew Poelstra ad40e69a85
Merge rust-bitcoin/rust-bitcoin#4626: Saturate iwp constructors to u32 max
3355400d67 docs: document IWP function return limit and panic case (yancy)
8559a49e03 Do not bound Arbitrary parameters passed to InputWeightPrediction (yancy)
e4c3d1e7a6 Use saturating add in IWP constructors (yancy)
8552534b61 Use u32 for struct and member variables in IWP, saturating to u32::MAX (yancy)

Pull request description:

  Use u32 for struct and member variables in InputWeightPrediction (saturating to u32::MAX).  To avoid panics during construction and while using auxiliary methods such as `total_size()`, support saturating operations.
  
  closes: https://github.com/rust-bitcoin/rust-bitcoin/issues/4547


ACKs for top commit:
  apoelstra:
    ACK 3355400d6706ce8fee3daa258e9dbbd648a87dca; successfully ran local tests; looks great!
  tcharding:
    ACK 3355400d67


Tree-SHA512: 8e4af86914152b4c159749ba71f1a2a45682b7c16ba7b35a0c4fd4e8c7c162d3999f4280dffd71b231c7e24f0b4a18907465bd99d8ef958fb7bc81f519059f63
2025-06-28 20:55:14 +00:00
..
address Merge rust-bitcoin/rust-bitcoin#4410: Wrap secp256k1::XOnlyPublicKey to improve error handling 2025-05-07 17:01:31 +00:00
blockdata Merge rust-bitcoin/rust-bitcoin#4626: Saturate iwp constructors to u32 max 2025-06-28 20:55:14 +00:00
consensus Move `p2p` encodings out of `encode` 2025-05-27 14:41:03 +01:00
crypto fix(taproot): raname `from_key_and_tweak` to `from_key_and_merkle_root` 2025-05-16 19:51:59 -03:00
merkle_tree 2025-04-27 automated rustfmt nightly 2025-04-27 01:36:56 +00:00
network Remove all `p2p` dependency from `network` 2025-05-29 15:20:10 +01:00
psbt Merge rust-bitcoin/rust-bitcoin#4637: psbt: check that non-witness UTXOs' txids match the input txid 2025-06-27 14:36:34 +00:00
taproot Simplify PartialOrd implementation 2025-06-24 14:47:23 +01:00
bip32.rs Improve `Xpriv::derive_xpriv` and `Xpub::derive_xpub` ergonomics 2025-06-23 18:06:02 -05:00
bip152.rs chore: Fix the typos in the comments and variables 2025-04-15 18:31:52 +08:00
bip158.rs Merge rust-bitcoin/rust-bitcoin#4250: Introduce and use `test_hex_unwrap` macro in `internals` 2025-04-24 17:19:37 +00:00
consensus_validation.rs Stop using FQP on Amount type 2025-01-24 08:54:24 +11:00
hash_types.rs 2025-03-30 automated rustfmt nightly 2025-03-30 01:27:51 +00:00
internal_macros.rs Update internal_macros.rs 2025-04-24 16:46:01 +03:00
lib.rs Move `bitcoin/p2p` into `p2p` 2025-06-18 14:11:35 +01:00
policy.rs Policy: Relax MIN_STANDARD_TX_NONWITNESS_SIZE to 65 2025-02-27 00:20:08 +07:00
pow.rs fix error pow.rs 2025-04-25 10:56:28 +02:00
sign_message.rs update secp256k1 to 0.30.0 2025-03-02 23:31:48 +08:00