Expand description
§Time locks
This module defines jets for checking time locks of Elements transactions.
Functions§
- check_
lock_ distance - Assert that the value returned by
tx_lock_distance
is greater than or equal to the given value. - check_
lock_ duration - Assert that the value returned by
tx_lock_duration
is greater than or equal to the given value. - check_
lock_ height - Assert that the value returned by
tx_lock_height
is greater than or equal to the given value. - check_
lock_ time - Assert that the value returned by
tx_lock_time
is greater than or equal to the given value. - tx_
is_ final - Check if the sequence numbers of all transaction inputs are at their maximum value.
- tx_
lock_ distance - If
version
returns 2 or greater, then return the greatest validDistance
value of any transaction input. Return zeroes otherwise. - tx_
lock_ duration - If
version
returns 2 or greater, then return the greatest validDuration
value of any transaction input. Return zeroes otherwise. - tx_
lock_ height - If
tx_is_final
returns false, then try to parse the transaction’s lock time as aHeight
value. Return zeroes otherwise. - tx_
lock_ time - If
tx_is_final
returns false, then try to parse the transaction’s lock time as aTime
value. Return zeroes otherwise.