Expand description
§Time locks
This module defines jets for checking time locks of Elements transactions.
Functions§
- Assert that the value returned by
tx_lock_distanceis greater than or equal to the given value. - Assert that the value returned by
tx_lock_durationis greater than or equal to the given value. - Assert that the value returned by
tx_lock_heightis greater than or equal to the given value. - Assert that the value returned by
tx_lock_timeis greater than or equal to the given value. - Check if the sequence numbers of all transaction inputs are at their maximum value.
- If
tx_is_finalreturns false, then try to parse the transaction’s lock time as aHeightvalue. Return zeroes otherwise. - If
tx_is_finalreturns false, then try to parse the transaction’s lock time as aTimevalue. Return zeroes otherwise.