Skip to content

Commit b29a3d2

Browse files
committed
[BIP-119] No double space after period, no trailing whitespaces
1 parent de0ff36 commit b29a3d2

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

bip-0119.mediawiki

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ The recommended standardness rules additionally:
4141

4242
Covenants are restrictions on how a coin may be spent beyond key ownership.
4343
This is a general definition based on the legal definition which even simple
44-
scripts using CSV would satisfy. Covenants in Bitcoin transactions usually
45-
refer to restrictions on where coins can be transferred. Covenants can be
44+
scripts using CSV would satisfy. Covenants in Bitcoin transactions usually
45+
refer to restrictions on where coins can be transferred. Covenants can be
4646
useful to construct smart contracts. As covenants are complex to implement and
4747
risk of introducing fungibility discriminants they have not been seriously
4848
considered for inclusion in Bitcoin.
@@ -51,7 +51,7 @@ This BIP introduces a simple covenant called a *template* which enables a
5151
limited set of highly valuable use cases without significant risk. BIP-119
5252
templates allow for non-recursive fully-enumerated covenants with no dynamic
5353
state. CTV serves as a replacement for a pre-signed transaction oracle, which
54-
eliminates the trust and interactivity requirements. Examples of uses include
54+
eliminates the trust and interactivity requirements. Examples of uses include
5555
wallet vaults, non-interactive payment channel creation, congestion controlled
5656
batching, efficient to construct discreet log contracts, and payment pools,
5757
among many others. For more details on these applications, please see the
@@ -162,7 +162,7 @@ For the avoidance of unclarity, the parameters to be determined are:
162162
consensus.vDeployments[Consensus::DEPLOYMENT_CHECKTEMPLATEVERIFY].nTimeout = Consensus::BIP9Deployment::NO_TIMEOUT;
163163
consensus.vDeployments[Consensus::DEPLOYMENT_CHECKTEMPLATEVERIFY].min_activation_height = 0;
164164
165-
Until BIP-119 reaches ACTIVE state and the
165+
Until BIP-119 reaches ACTIVE state and the
166166
SCRIPT_VERIFY_DEFAULT_CHECK_TEMPLATE_VERIFY_HASH flag is enforced, node implementations should (are recommended to)
167167
execute a NOP4 as SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS (to deny entry to the mempool) for policy and must evaluate as
168168
a NOP for consensus (during block validation).
@@ -195,7 +195,7 @@ Below we'll discuss the rules one-by-one:
195195

196196
The set of data committed to is a superset of data which can impact the TXID of the transaction,
197197
other than the inputs. This ensures that for a given known input, the TXIDs can also be known ahead
198-
of time. Otherwise, CHECKTEMPLATEVERIFY would not be usable for Batched Channel Creation constructions
198+
of time. Otherwise, CHECKTEMPLATEVERIFY would not be usable for Batched Channel Creation constructions
199199
as the redemption TXID could be malleated and pre-signed transactions invalidated, unless the channels
200200
are built using an Eltoo-like protocol. Note that there may be other types of pre-signed contracts that
201201
may or may not be able to use Eltoo-like constructs, therefore making TXIDs predictable makes CTV more
@@ -341,7 +341,7 @@ programs.
341341

342342
RIPEMD160, a 20 byte hash, might also be a viable hash in some contexts and has some benefits. For fee efficiency,
343343
RIPEMD160 saves 12 bytes. However, RIPEMD160 was not chosen for BIP-119 because it introduces
344-
risks around the verification of programs created by third parties to be subject to a
344+
risks around the verification of programs created by third parties to be subject to a
345345
[birthday-attack https://bitcoin.stackexchange.com/questions/54841/birthday-attack-on-p2sh] on
346346
transaction preimages.
347347

@@ -523,11 +523,11 @@ CHECKTEMPLATEVERIFY has benefits in terms of script size (depending on choice of
523523
PK, SIGHASH_ANYPREVOUTANYSCRIPT may use about 2x-3x the bytes) and verification
524524
speed, as OP_CHECKTEMPLATEVERIFY requires only hash computation rather than
525525
signature operations. This can be significant when constructing large payment
526-
trees or programmatic compilations. CHECKTEMPLATEVERIFY also has a feature-wise
526+
trees or programmatic compilations. CHECKTEMPLATEVERIFY also has a feature-wise
527527
benefit in that it provides a robust pathway for future template upgrades.
528528

529529
OP_CHECKSIGFROMSTACKVERIFY along with OP_CAT may also be used to emulate
530-
CHECKTEMPLATEVERIFY. However such constructions are more complicated to use
530+
CHECKTEMPLATEVERIFY. However such constructions are more complicated to use
531531
than CHECKTEMPLATEVERIFY, and encumbers additional verification overhead absent
532532
from CHECKTEMPLATEVERIFY. These types of covenants also bear similar potential
533533
recursion issues to OP_COV which make it unlikely for inclusion in Bitcoin.
@@ -545,7 +545,7 @@ the future as well as synergies with other possible upgrades.
545545
=====CHECKTEMPLATEVERIFY Versions=====
546546

547547
OP_CHECKTEMPLATEVERIFY currently only verifies properties of 32 byte arguments.
548-
In the future, meaning could be ascribed to other length arguments. For
548+
In the future, meaning could be ascribed to other length arguments. For
549549
example, a 33-byte argument could just the last byte as a control program. In
550550
that case, DefaultCheckTemplateVerifyHash could be computed when the flag byte
551551
is set to CTVHASH_ALL. Other programs could be added similar to SIGHASH_TYPEs.

0 commit comments

Comments
 (0)