rust-bitcoin-unsafe-fast/bitcoin/src
Andrew Poelstra e9e8be3acc
Merge rust-bitcoin/rust-bitcoin#1692: Add constants to `InputWeightPrediction`
3eb648df01 Add constants to `InputWeightPrediction` (Martin Habovstiak)

Pull request description:

  There are several common spends in Bitcoin that have known input weight predictions. It can be useful to have these as constants, so this change adds them. However, this only adds native segwit ones as the others are slowly fading away and might clutter the API.

  If anyone wants other constants, please write them for me, their value is not that great to me so I'm not motivated to figure out the correct numbers. :)

  This would be nice to add to 0.30 since it's small and easy but not critical.

ACKs for top commit:
  apoelstra:
    ACK 3eb648df01
  tcharding:
    ACK 3eb648df01
  sanket1729:
    ACK 3eb648df01

Tree-SHA512: 51d2cd2ecef7e6b79f9d4b52319e34b908fe8b5a337551dc2088994feeafc9c3ca87884c3db8369f8bd002947d6d14b373f08ef1419db282713206ed6f1b309a
2023-03-08 00:37:05 +00:00
..
blockdata Add constants to `InputWeightPrediction` 2023-03-07 09:50:13 +01:00
consensus Re-name hash inner/byte methods 2023-02-27 14:23:58 +11:00
crypto Improve the public API 2023-03-01 09:28:42 +11:00
merkle_tree Run the formatter 2023-03-06 10:22:29 +11:00
network Run the formatter 2023-03-06 10:22:29 +11:00
psbt Rename ScriptLeaf to LeafNode 2023-03-01 16:59:13 -08:00
util Move base58 module to crate root 2022-12-01 09:56:33 +11:00
address.rs Run the formatter 2023-03-06 10:22:29 +11:00
amount.rs Run the formatter 2023-03-06 10:22:29 +11:00
base58.rs Replace `Vec::from_hex` with `hex!` 2022-12-31 21:10:19 +01:00
bip32.rs Run the formatter 2023-03-06 10:22:29 +11:00
bip152.rs Run the formatter 2023-03-06 10:22:29 +11:00
bip158.rs Run the formatter 2023-03-06 10:22:29 +11:00
error.rs Move util::Error to error module 2022-11-16 10:42:30 +11:00
hash_types.rs Re-name hash inner/byte methods 2023-02-27 14:23:58 +11:00
internal_macros.rs Run the formatter 2023-03-06 10:22:29 +11:00
lib.rs Run the formatter 2023-03-06 10:22:29 +11:00
parse.rs Improve string parsing 2023-02-10 12:28:25 +11:00
policy.rs Add a workspace to the top level directory. 2022-09-13 08:44:57 +10:00
pow.rs Run the formatter 2023-03-06 10:22:29 +11:00
serde_utils.rs Run the formatter 2023-03-06 10:22:29 +11:00
sign_message.rs Remove `ToHex` 2023-01-07 19:50:03 +01:00
string.rs Run the formatter 2023-03-06 10:22:29 +11:00
taproot.rs Merge rust-bitcoin/rust-bitcoin#1695: fix clippy lint 2023-03-07 21:11:52 +00:00
test_macros.rs Add a workspace to the top level directory. 2022-09-13 08:44:57 +10:00