mirror of
https://github.com/bitcoinbook/bitcoinbook
synced 2024-11-22 16:18:11 +00:00
Fix typo in ch07
Change 'a output' to 'an output'
This commit is contained in:
parent
b799bdd2be
commit
78936b0d2b
@ -261,7 +261,7 @@ While nLocktime is a transaction level timelock, CLTV is an output based timeloc
|
||||
|
||||
The +CLTV+ opcode takes one parameter as input, expressed as a number in the same format as nLocktime (either a block height or Unix epoch time). As indicated by the +VERIFY+ suffix, +CLTV+ is the type of opcode that halts execution of the script if the outcome is +FALSE+. If it results in TRUE, execution continues.
|
||||
|
||||
In order to lock a output with +CLTV+, you insert it into the redeem script of the output, in the transaction that creates the output. For example, if Alice is paying Bob's address, the output would normally contain a P2PKH script like this:
|
||||
In order to lock an output with +CLTV+, you insert it into the redeem script of the output, in the transaction that creates the output. For example, if Alice is paying Bob's address, the output would normally contain a P2PKH script like this:
|
||||
|
||||
----
|
||||
DUP HASH160 <Bob's Public Key Hash> EQUALVERIFY
|
||||
|
Loading…
Reference in New Issue
Block a user