Skip to main content

Module locktime

Module locktime 

Source

Enums§

LocktimeType
Locktime type (block height vs timestamp)

Functions§

check_bip65
BIP65 CLTV core check (Orange Paper §5.4.7 / BIP65).
check_bip112
BIP112 comparison once the operand’s disable bit is clear, the transaction version is at least 2, and the input’s disable bit is clear.
decode_locktime_value
Decode a stack element as a script number of at most 5 bytes.
encode_locktime_value
Encode locktime value to minimal-encoding byte string
extract_sequence_locktime_value
BIP68: Extract relative locktime value from sequence number
extract_sequence_type_flag
BIP68: Extract relative locktime type flag from sequence number
get_locktime_type
Determine locktime type from value
get_locktime_type_timestamp
Timestamp branch of GetLocktimeType: when locktime >= LOCKTIME_THRESHOLD, returns Timestamp.
is_sequence_disabled
BIP68: Check if sequence number has disabled bit set
locktime_types_match
Check if two locktime values have matching types