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_distanceis greater than or equal to the given value. - check_
lock_ duration - Assert that the value returned by
tx_lock_durationis greater than or equal to the given value. - check_
lock_ height - Assert that the value returned by
tx_lock_heightis greater than or equal to the given value. - check_
lock_ time - Assert that the value returned by
tx_lock_timeis 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
versionreturns 2 or greater, then return the greatest validDistancevalue of any transaction input. Return zeroes otherwise. - tx_
lock_ duration - If
versionreturns 2 or greater, then return the greatest validDurationvalue of any transaction input. Return zeroes otherwise. - tx_
lock_ height - If
tx_is_finalreturns false, then try to parse the transaction’s lock time as aHeightvalue. Return zeroes otherwise. - tx_
lock_ time - If
tx_is_finalreturns false, then try to parse the transaction’s lock time as aTimevalue. Return zeroes otherwise.