rust-bitcoin-unsafe-fast/bitcoin/src
merge-script c85648cfd4
Merge rust-bitcoin/rust-bitcoin#4322: fix: enforce standard minimal push for push_slice
354e1e42ad fix: enforce minimal push for push_slice (ChrisCho-H)

Pull request description:

  Currently `push_slice` doesn't check the standard minimal push rule, which could result in possible money loss(e.g. if non minimal push is used in output script of p2wsh or p2tr).
  Introduce `push_slice_non_minimal` to provide the way to push as now, and change `push_slice` logic to follow standard minimal push rule.

  99a4ddf5ab/src/script/script.cpp (L366)

ACKs for top commit:
  tcharding:
    ACK 354e1e42ad
  apoelstra:
    ACK 354e1e42ad98c7968827d03be563bc14d764a983; successfully ran local tests

Tree-SHA512: 01f53dbd2a1a3c9a9e4387f0aaa7801f9c4570996054503a38d09ed1646ab65a3249d227adcf4139ac37a111d795e6cf986c4c273d5660c20820d1b36ba46f57
2025-04-18 14:23:53 +00:00
..
address Capitalize Taproot in rustdocs 2025-04-17 18:02:35 +01:00
blockdata Merge rust-bitcoin/rust-bitcoin#4322: fix: enforce standard minimal push for push_slice 2025-04-18 14:23:53 +00:00
consensus fix typos 2025-03-10 09:04:59 +08:00
crypto 2025-03-30 automated rustfmt nightly 2025-03-30 01:27:51 +00:00
merkle_tree 2025-01-12 automated rustfmt nightly 2025-01-12 01:23:13 +00:00
network Update CompactTarget::from_next_work_required to take timespan as i64 2024-11-27 11:27:22 -06:00
p2p fix rejectection to rejection message_network.rs 2025-04-17 21:13:12 +02:00
psbt 2025-03-30 automated rustfmt nightly 2025-03-30 01:27:51 +00:00
taproot 2025-03-30 automated rustfmt nightly 2025-03-30 01:27:51 +00:00
bip32.rs 2025-03-30 automated rustfmt nightly 2025-03-30 01:27:51 +00:00
bip152.rs chore: Fix the typos in the comments and variables 2025-04-15 18:31:52 +08:00
bip158.rs 2025-03-30 automated rustfmt nightly 2025-03-30 01:27:51 +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 Set avoid-breaking-exported-api to false 2024-12-11 10:11:50 +11:00
lib.rs Merge rust-bitcoin/rust-bitcoin#4166: Remove bip158 types from crate root 2025-03-26 15:06:55 +00:00
policy.rs Policy: Relax MIN_STANDARD_TX_NONWITNESS_SIZE to 65 2025-02-27 00:20:08 +07:00
pow.rs chore: spellchecker 2025-03-16 07:23:18 +00:00
serde_utils.rs Elide more lifetimes 2024-10-28 15:22:13 +11:00
sign_message.rs update secp256k1 to 0.30.0 2025-03-02 23:31:48 +08:00