rust-bitcoin-unsafe-fast/units/src
merge-script fa8eaf0257
Merge rust-bitcoin/rust-bitcoin#4092: Add `Timestamp` newtype
b3f122b399 Add Timestamp newtype (Tobin C. Harding)

Pull request description:

  Bitcoin block headers have a timestamp. Currently we are using a `u32`. While this functions correctly it gives the compiler no chance to enforce type safety.

  Add a `Timestamp` newtype that is a thin wrapper around a `u32`. Document it and test the API surface in `api.rs`.

ACKs for top commit:
  apoelstra:
    ACK b3f122b3996c1a73479be2f95b7f2ae642c9c56f; successfully ran local tests
  Kixunil:
    ACK b3f122b399

Tree-SHA512: 6f4a4a588bc836243ae28f3d36be6c0ae264cb2b7a0061277910b107d05e5ca0e679497d2890208f5d8ec148f37bf263bcd0b0410f9e5e6370d8e763ff30b78a
2025-03-06 19:34:11 +00:00
..
amount Update mod.rs 2025-02-28 12:34:21 +01:00
fee_rate units: replace a gazillion more macro calls with new macro 2025-02-25 20:31:45 +00:00
locktime Kill remaining mutants 2025-01-21 17:01:36 -06:00
block.rs 2025-01-12 automated rustfmt nightly 2025-01-12 01:23:13 +00:00
fee.rs Use uniform return statement in docs 2025-03-03 14:06:01 +11:00
internal_macros.rs units: extend op reference macro to handle generics and where clauses 2025-02-25 20:31:45 +00:00
lib.rs Merge rust-bitcoin/rust-bitcoin#4092: Add `Timestamp` newtype 2025-03-06 19:34:11 +00:00
parse.rs units: Improve code comment on macros 2025-02-28 08:47:11 +11:00
timestamp.rs Add Timestamp newtype 2025-02-25 10:03:28 +11:00
weight.rs Merge rust-bitcoin/rust-bitcoin#4174: Improve weight 2025-03-06 15:58:59 +00:00