2025年2月6日 — A script is essentially a list of instructions recorded with each transaction that describe how the next person wanting to spend the Bitcoins being transferred ...
Relative timelocks can be set on each input of a transaction, by setting the nSequence field in each input.
The nSequence opcode is a system that allows time locks in Bitcoin. It helps us to program certain conditions in the transactions that must be fulfilled first.
nSequence is a 4 byte input level feature. The original meaning of nSequence was to allow modification of transactions in the mempool.
nSequence is the transaction-level relative time lock, which was in Bitcoin always and was designed by Satoshi Nakamoto.
nSequence的功能与nLockTime一样,只不过将绝 对的高度,时间 转换成了 相对的高度,时间 .这里做一下nSequence以及CHECKSEQUENCEVERIFY相关的交易,并跟踪到相关代码来
例如,具有nSequence 為30個區塊的相對時間鎖的一個輸入的交易,僅在從輸入中引用的UTXO被開採的時間起,至少經過30個區塊時才有效。由於nSequence 是每個輸入的欄位,交易可能