rust-bitcoin-unsafe-fast/bitcoin/src/blockdata
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
..
locktime clarify the meaning of Height & Time based locktime. 2024-06-19 20:14:04 +05:30
script Merge rust-bitcoin/rust-bitcoin#2896: Move `PushBytes::read_scriptint` outside of the `private` module 2024-06-23 23:57:41 +00:00
block.rs Merge rust-bitcoin/rust-bitcoin#2880: Pass hash types by value 2024-06-22 19:42:24 +00:00
constants.rs Remove usage of blockdata from paths 2024-06-20 12:00:22 +10:00
mod.rs Remove usage of blockdata from paths 2024-06-20 12:00:22 +10:00
opcodes.rs Removed //! spare line at end of headers 2024-05-16 09:59:55 +01:00
transaction.rs Remove usage of blockdata from paths 2024-06-20 12:00:22 +10:00
witness.rs Remove usage of blockdata from paths 2024-06-20 12:00:22 +10:00