Module bitcoin_units::locktime::absolute

source ·
Available on crate feature alloc only.
Expand description

Provides type Height and Time types used by the rust-bitcoin absolute::LockTime type.

Structs§

  • An error that occurs when converting a u32 to a lock time variant.
  • An absolute block height, guaranteed to always contain a valid height value.
  • Error returned when parsing block height fails.
  • Error returned when parsing block time fails.
  • A UNIX timestamp, seconds since epoch, guaranteed to always contain a valid time value.

Constants§

Functions§

  • Returns true if n is a block height i.e., less than 500,000,000.
  • Returns true if n is a UNIX timestamp i.e., greater than or equal to 500,000,000.