Module bdk_chain::bitcoin::blockdata::locktime::absolute

Expand description

Provides type LockTime that implements the logic around nLockTime/OP_CHECKLOCKTIMEVERIFY.

There are two types of lock time: lock-by-blockheight and lock-by-blocktime, distinguished by whether LockTime < LOCKTIME_THRESHOLD.

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.

Enums§

  • An absolute lock time value, representing either a block height or a UNIX timestamp (seconds since epoch).

Constants§