Timelock
A timelock is a rule that keeps bitcoin unspendable until a set block height or time.
A timelock is a rule that stops a bitcoin output from being spent until a given time or block height has passed, or until a set period has elapsed since the output was confirmed. It is enforced by the network, not by a company.
How it works
There are two families. Absolute timelocks fix a point on the chain. A transaction’s lock time field makes it invalid before a given block height or timestamp, and the script opcode defined in BIP65, CHECKLOCKTIMEVERIFY, lets an output carry the same condition.
Relative timelocks count from when the output was confirmed. BIP68 gives meaning to the sequence field of an input, and BIP112 adds the CHECKSEQUENCEVERIFY opcode so scripts can require such a delay. Delays are expressed in blocks or in units of time.
Where you see it
Timelocks appear in advanced wallet designs, such as a recovery path that opens only after a long wait, and in protocols that need a fallback if a counterparty disappears. They are also relevant to inheritance planning, where a delayed path can let heirs spend if the owner never moves the coins.
Why it matters
Timelocks allow conditions such as “after a year, this second key may also spend”. A simple example is a long-delay recovery path in a plan for heirs. The cost is complexity and a duty to refresh coins before the delay ends, so such designs need testing with small amounts first.
Common confusions
- A timelock does not cancel itself. If a delay is built into the script, you must plan around it.
- It does not hide anything. The conditions are visible once the output is spent.
- A time-based lock is not a clock. It relies on block timestamps, which can differ slightly from wall-clock time, so a block-height lock is the more predictable form.
- It is not a substitute for a backup. Keys and the script record still need safe storage.
Related practice material is on the custody hub. Timelocks are often combined with multisig in recovery plans. This is education, not financial advice.
Sources
- BIP65: OP_CHECKLOCKTIMEVERIFY · Bitcoin Improvement Proposals
- BIP68: Relative lock-time using consensus-enforced sequence numbers · Bitcoin Improvement Proposals
- BIP112: CHECKSEQUENCEVERIFY · Bitcoin Improvement Proposals
Educational data only. Not financial, investment or tax advice; no licence is claimed. Bitcoin Prime publishes no forecasts, targets or trading signals.