rust-bitcoin-unsafe-fast/bitcoin/src
Andrew Poelstra ae8b0b1610
Merge rust-bitcoin/rust-bitcoin#2896: Move `PushBytes::read_scriptint` outside of the `private` module
aebf216619 Use 100 column width for rustdoc (Tobin C. Harding)
c71ae9ac16 Move PushBytes::read_scriptint (Tobin C. Harding)

Pull request description:

  The `push_bytes` module has a `private` module that exists solely to protect the invariant on the `PushBytes` inner byte slice. There is a `PushBytes` impl block outside the private module for functions that can not and do not violate the length invariant.

  Recently we move the `read_scriptint` method to be on the `PushBytes` but we put it inside the `private` module, since the method only reads off of the slice it cannot invalidate the invariant and does not need to be inside the `private` module.

  Move the `read_scriptint` method outside of the `private` module to keep that module as small as possible, helping with its stated aim of being the only place that requires auditing.

  Patch 2 is whitespace only.

ACKs for top commit:
  Kixunil:
    ACK aebf216619
  apoelstra:
    ACK aebf216619

Tree-SHA512: f41eb691e7118a74767a2582a637a176a46e4a8d15259f1c1f3cef67bc57dd8dce4974407c5a5e31acd0b4665f722b20acad4e381747c9d496f18158a0ef9def
2024-06-23 23:57:41 +00:00
..
address Merge rust-bitcoin/rust-bitcoin#2880: Pass hash types by value 2024-06-22 19:42:24 +00:00
blockdata Merge rust-bitcoin/rust-bitcoin#2896: Move `PushBytes::read_scriptint` outside of the `private` module 2024-06-23 23:57:41 +00:00
consensus Remove usage of blockdata from paths 2024-06-20 12:00:22 +10:00
crypto Remove usage of blockdata from paths 2024-06-20 12:00:22 +10:00
merkle_tree Remove usage of blockdata from paths 2024-06-20 12:00:22 +10:00
p2p Remove usage of blockdata from paths 2024-06-20 12:00:22 +10:00
psbt Merge rust-bitcoin/rust-bitcoin#2880: Pass hash types by value 2024-06-22 19:42:24 +00:00
taproot Remove InvalidInternalKey variant from TaprootBuilderError 2024-06-20 13:03:59 +10:00
bip32.rs create constants for ChildNumber enum 2024-06-20 10:19:11 +05:30
bip152.rs Remove usage of blockdata from paths 2024-06-20 12:00:22 +10:00
bip158.rs Merge rust-bitcoin/rust-bitcoin#2880: Pass hash types by value 2024-06-22 19:42:24 +00:00
hash_types.rs Add inherent functions to hashes 2024-06-14 10:17:00 +10:00
internal_macros.rs Remove usage of blockdata from paths 2024-06-20 12:00:22 +10:00
lib.rs Move merkle_tree hash types 2024-06-17 19:10:23 +00:00
network.rs Remove usage of blockdata from paths 2024-06-20 12:00:22 +10:00
policy.rs Remove usage of blockdata from paths 2024-06-20 12:00:22 +10:00
pow.rs Remove usage of blockdata from paths 2024-06-20 12:00:22 +10:00
serde_utils.rs Removed //! spare line at end of headers 2024-05-16 09:59:55 +01:00
sign_message.rs Merge rust-bitcoin/rust-bitcoin#2868: Pass keys by value 2024-06-14 23:56:46 +00:00
test_macros.rs Removed //! spare line at end of headers 2024-05-16 09:59:55 +01:00