Skip to content

Commit 9a56d35

Browse files
committed
Remove trailing whitespace from all BIPs
1 parent ad1d3bc commit 9a56d35

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+291
-291
lines changed

Diff for: bip-0009.mediawiki

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ other one simultaneously transitions to STARTED, which would mean both would dem
119119

120120
Note that a block's state never depends on its own nVersion; only on that of its ancestors.
121121

122-
case STARTED:
122+
case STARTED:
123123
if (GetMedianTimePast(block.parent) >= timeout) {
124124
return FAILED;
125125
}

Diff for: bip-0017.mediawiki

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Avoiding a block-chain split by malicious pay-to-script transactions requires ca
8686

8787
* A pay-to-script-hash transaction that is invalid for new clients/miners but valid for old clients/miners.
8888
89-
To gracefully upgrade and ensure no long-lasting block-chain split occurs, more than 50% of miners must support full validation of the new transaction type and must switch from the old validation rules to the new rules at the same time.
89+
To gracefully upgrade and ensure no long-lasting block-chain split occurs, more than 50% of miners must support full validation of the new transaction type and must switch from the old validation rules to the new rules at the same time.
9090

9191
To judge whether or not more than 50% of hashing power supports this BIP, miners are asked to upgrade their software and put the string "p2sh/CHV" in the input of the coinbase transaction for blocks that they create.
9292

Diff for: bip-0038.mediawiki

+6-6
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ To keep the size of the encrypted key down, no initialization vectors (IVs) are
6464
* How the user sees it: 58 characters always starting with '6P'
6565
** Visual cues are present in the third character for visually identifying the EC-multiply and compress flag.
6666
* Count of payload bytes (beyond prefix): 37
67-
** 1 byte (''flagbyte''):
67+
** 1 byte (''flagbyte''):
6868
*** the most significant two bits are set as follows to preserve the visibility of the compression flag in the prefix, as well as to keep the payload within the range of allowable values that keep the "6P" prefix intact. For non-EC-multiplied keys, the bits are 11. For EC-multiplied keys, the bits are 00.
6969
*** the bit with value 0x20 when set indicates the key should be converted to a base58check encoded P2PKH bitcoin address using the DER compressed public key format. When not set, it should be a base58check encoded P2PKH bitcoin address using the DER uncompressed public key format.
7070
*** the bits with values 0x10 and 0x08 are reserved for a future specification that contemplates using multisig as a way to combine the factors such that parties in possession of the separate factors can independently sign a proposed transaction without requiring that any party possess both factors. These bits must be 0 to comply with this version of the specification.
@@ -75,10 +75,10 @@ To keep the size of the encrypted key down, no initialization vectors (IVs) are
7575
**16 bytes: lasthalf: An AES-encrypted key material record (contents depend on whether EC multiplication is used)
7676
* Range in base58check encoding for non-EC-multiplied keys without compression (prefix 6PR):
7777
** Minimum value: 6PRHv1jg1ytiE4kT2QtrUz8gEjMQghZDWg1FuxjdYDzjUkcJeGdFj9q9Vi (based on 01 42 C0 plus thirty-six 00's)
78-
** Maximum value: 6PRWdmoT1ZursVcr5NiD14p5bHrKVGPG7yeEoEeRb8FVaqYSHnZTLEbYsU (based on 01 42 C0 plus thirty-six FF's)
78+
** Maximum value: 6PRWdmoT1ZursVcr5NiD14p5bHrKVGPG7yeEoEeRb8FVaqYSHnZTLEbYsU (based on 01 42 C0 plus thirty-six FF's)
7979
* Range in base58check encoding for non-EC-multiplied keys with compression (prefix 6PY):
8080
** Minimum value: 6PYJxKpVnkXUsnZAfD2B5ZsZafJYNp4ezQQeCjs39494qUUXLnXijLx6LG (based on 01 42 E0 plus thirty-six 00's)
81-
** Maximum value: 6PYXg5tGnLYdXDRZiAqXbeYxwDoTBNthbi3d61mqBxPpwZQezJTvQHsCnk (based on 01 42 E0 plus thirty-six FF's)
81+
** Maximum value: 6PYXg5tGnLYdXDRZiAqXbeYxwDoTBNthbi3d61mqBxPpwZQezJTvQHsCnk (based on 01 42 E0 plus thirty-six FF's)
8282
* Range in base58check encoding for EC-multiplied keys without compression (prefix 6Pf):
8383
** Minimum value: 6PfKzduKZXAFXWMtJ19Vg9cSvbFg4va6U8p2VWzSjtHQCCLk3JSBpUvfpf (based on 01 43 00 plus thirty-six 00's)
8484
** Maximum value: 6PfYiPy6Z7BQAwEHLxxrCEHrH9kasVQ95ST1NnuEnnYAJHGsgpNPQ9dTHc (based on 01 43 00 plus thirty-six FF's)
@@ -272,17 +272,17 @@ Test 2:
272272

273273
Test 1:
274274
*Passphrase: MOLON LABE
275-
*Passphrase code: passphraseaB8feaLQDENqCgr4gKZpmf4VoaT6qdjJNJiv7fsKvjqavcJxvuR1hy25aTu5sX
275+
*Passphrase code: passphraseaB8feaLQDENqCgr4gKZpmf4VoaT6qdjJNJiv7fsKvjqavcJxvuR1hy25aTu5sX
276276
*Encrypted key: 6PgNBNNzDkKdhkT6uJntUXwwzQV8Rr2tZcbkDcuC9DZRsS6AtHts4Ypo1j
277277
*Bitcoin address: 1Jscj8ALrYu2y9TD8NrpvDBugPedmbj4Yh
278278
*Unencrypted private key (WIF): 5JLdxTtcTHcfYcmJsNVy1v2PMDx432JPoYcBTVVRHpPaxUrdtf8
279279
*Unencrypted private key (hex): 44EA95AFBF138356A05EA32110DFD627232D0F2991AD221187BE356F19FA8190
280280
*Confirmation code: cfrm38V8aXBn7JWA1ESmFMUn6erxeBGZGAxJPY4e36S9QWkzZKtaVqLNMgnifETYw7BPwWC9aPD
281281
*Lot/Sequence: 263183/1
282282
283-
Test 2:
283+
Test 2:
284284
*Passphrase (all letters are Greek - test UTF-8 compatibility with this): ΜΟΛΩΝ ΛΑΒΕ
285-
*Passphrase code: passphrased3z9rQJHSyBkNBwTRPkUGNVEVrUAcfAXDyRU1V28ie6hNFbqDwbFBvsTK7yWVK
285+
*Passphrase code: passphrased3z9rQJHSyBkNBwTRPkUGNVEVrUAcfAXDyRU1V28ie6hNFbqDwbFBvsTK7yWVK
286286
*Encrypted private key: 6PgGWtx25kUg8QWvwuJAgorN6k9FbE25rv5dMRwu5SKMnfpfVe5mar2ngH
287287
*Bitcoin address: 1Lurmih3KruL4xDB5FmHof38yawNtP9oGf
288288
*Unencrypted private key (WIF): 5KMKKuUmAkiNbA3DazMQiLfDq47qs8MAEThm4yL8R2PhV1ov33D

Diff for: bip-0042.mediawiki

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Note that several other programming languages do not exhibit this behaviour, mak
4242

4343
===Floating-point approximation===
4444

45-
An obvious solution would be to reimplement the shape of the subsidy curve using floating-point approximations, such as simulated annealing or quantitative easing, which have already proven their worth in consensus systems. Unfortunately, since the financial crisis everyone considers numbers with decimal points in them fishy, and integers are not well supported by Javascript.
45+
An obvious solution would be to reimplement the shape of the subsidy curve using floating-point approximations, such as simulated annealing or quantitative easing, which have already proven their worth in consensus systems. Unfortunately, since the financial crisis everyone considers numbers with decimal points in them fishy, and integers are not well supported by Javascript.
4646

4747
===Truncation===
4848

Diff for: bip-0052.mediawiki

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Bitcoin network cannot profitably mine Bitcoin even if they have the capital to
2525
invest in mining hardware. From a practical perspective, Bitcoin adoption by
2626
companies like Tesla (which recently rescinded its acceptance of Bitcoin as
2727
payment) has been hampered by its massive energy consumption and perceived
28-
environmental impact.
28+
environmental impact.
2929

3030
<img src="bip-0052/btc_energy-small.png"></img>
3131

@@ -137,7 +137,7 @@ x1 <- keccak(input)
137137
x2 <- reshape(x1, 64)
138138

139139
// Perform a matrix-vector multiplication.
140-
// The result is 64-vector of 14-bit unsigned.
140+
// The result is 64-vector of 14-bit unsigned.
141141
x3 <- vector_matrix_mult(x2, M)
142142

143143
// Truncate all values to 4 most significant bits.

Diff for: bip-0064.mediawiki

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ If the requesting client is looking up outputs for a signed transaction that the
8686
client can partly verify the returned output by running the input scripts with it. Currently this
8787
verifies only that the script is correct. A future version of the Bitcoin protocol is likely to also
8888
allow the value to be checked in this way. It does not show that the output is really unspent or was
89-
ever actually created in the block chain however. Additionally, the form of the provided scriptPubKey
89+
ever actually created in the block chain however. Additionally, the form of the provided scriptPubKey
9090
should be checked before execution to ensure the remote peer doesn't just set the script to OP_TRUE.
9191

9292
If the requesting client has a mapping of chain heights to block hashes in the best chain e.g.

Diff for: bip-0065.mediawiki

+10-10
Original file line numberDiff line numberDiff line change
@@ -205,19 +205,19 @@ transaction output ''can'' be spent.
205205
Refer to the reference implementation, reproduced below, for the precise
206206
semantics and detailed rationale for those semantics.
207207

208-
208+
209209
case OP_NOP2:
210210
{
211211
// CHECKLOCKTIMEVERIFY
212212
//
213213
// (nLockTime -- nLockTime )
214-
214+
215215
if (!(flags & SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY))
216216
break; // not enabled; treat as a NOP
217-
217+
218218
if (stack.size() < 1)
219219
return false;
220-
220+
221221
// Note that elsewhere numeric opcodes are limited to
222222
// operands in the range -2**31+1 to 2**31-1, however it is
223223
// legal for opcodes to produce results exceeding that
@@ -233,13 +233,13 @@ semantics and detailed rationale for those semantics.
233233
// to 5-byte bignums, which are good until 2**32-1, the
234234
// same limit as the nLockTime field itself.
235235
const CScriptNum nLockTime(stacktop(-1), 5);
236-
236+
237237
// In the rare event that the argument may be < 0 due to
238238
// some arithmetic being done first, you can always use
239239
// 0 MAX CHECKLOCKTIMEVERIFY.
240240
if (nLockTime < 0)
241241
return false;
242-
242+
243243
// There are two types of nLockTime: lock-by-blockheight
244244
// and lock-by-blocktime, distinguished by whether
245245
// nLockTime < LOCKTIME_THRESHOLD.
@@ -252,12 +252,12 @@ semantics and detailed rationale for those semantics.
252252
(txTo.nLockTime >= LOCKTIME_THRESHOLD && nLockTime >= LOCKTIME_THRESHOLD)
253253
))
254254
return false;
255-
255+
256256
// Now that we know we're comparing apples-to-apples, the
257257
// comparison is a simple numeric one.
258258
if (nLockTime > (int64_t)txTo.nLockTime)
259259
return false;
260-
260+
261261
// Finally the nLockTime feature can be disabled and thus
262262
// CHECKLOCKTIMEVERIFY bypassed if every txin has been
263263
// finalized by setting nSequence to maxint. The
@@ -270,9 +270,9 @@ semantics and detailed rationale for those semantics.
270270
// required to prove correct CHECKLOCKTIMEVERIFY execution.
271271
if (txTo.vin[nIn].IsFinal())
272272
return false;
273-
273+
274274
break;
275-
275+
276276
}
277277
278278
https://github.com/petertodd/bitcoin/commit/ab0f54f38e08ee1e50ff72f801680ee84d0f1bf4

Diff for: bip-0066.mediawiki

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ bool static IsValidSignatureEncoding(const std::vector<unsigned char> &sig) {
7575
// Verify that the length of the signature matches the sum of the length
7676
// of the elements.
7777
if ((size_t)(lenR + lenS + 7) != sig.size()) return false;
78-
78+
7979
// Check whether the R element is an integer.
8080
if (sig[2] != 0x02) return false;
8181
@@ -140,7 +140,7 @@ An implementation for the reference client is available at https://github.com/bi
140140

141141
==Acknowledgements==
142142

143-
This document is extracted from the previous BIP62 proposal, which had input from various people, in particular Greg Maxwell and Peter Todd, who gave feedback about this document as well.
143+
This document is extracted from the previous BIP62 proposal, which had input from various people, in particular Greg Maxwell and Peter Todd, who gave feedback about this document as well.
144144

145145
==Disclosures==
146146

Diff for: bip-0067.mediawiki

+23-23
Original file line numberDiff line numberDiff line change
@@ -19,39 +19,39 @@ This BIP describes a method to deterministically generate multi-signature pay-to
1919

2020
==Motivation==
2121

22-
Pay-to-script-hash (BIP-0011<ref>[https://github.com/bitcoin/bips/blob/master/bip-0011.mediawiki BIP-0011]</ref>) is a transaction type that allows funding of arbitrary scripts, where the recipient carries the cost of fee's associated with using longer, more complex scripts.
22+
Pay-to-script-hash (BIP-0011<ref>[https://github.com/bitcoin/bips/blob/master/bip-0011.mediawiki BIP-0011]</ref>) is a transaction type that allows funding of arbitrary scripts, where the recipient carries the cost of fee's associated with using longer, more complex scripts.
2323

2424
Multi-signature pay-to-script-hash transactions are defined in BIP-0016<ref>[https://github.com/bitcoin/bips/blob/master/bip-0016.mediawiki BIP-0016]</ref>. The redeem script does not require a particular ordering or encoding for public keys. This means that for a given set of keys and number of required signatures, there are as many as 2(n!) possible standard redeem scripts, each with its separate P2SH address. Adhering to an ordering and key encoding would ensure that a multi-signature “account” (set of public keys and required signature count) has a canonical P2SH address.
2525

2626
By adopting a sorting and encoding standard, compliant wallets will always produce the same P2SH address for the same given set of keys and required signature count, making it easier to recognize transactions involving that multi-signature account. This is particularly attractive for multisignature hierarchical-deterministic wallets, as less state is required to setup multi-signature accounts: only the number of required signatures and master public keys of participants need to be shared, and all wallets will generate the same addresses.
2727

2828
While most web wallets do not presently facilitate the setup of multisignature accounts with users of a different service, conventions which ensure cross-compatibility should make it easier to achieve this.
2929

30-
Many wallet as a service providers use a 2of3 multi-signature schema where the user stores 1 of the keys (offline) as backup while using the other key for daily use and letting the service cosign his transactions.
30+
Many wallet as a service providers use a 2of3 multi-signature schema where the user stores 1 of the keys (offline) as backup while using the other key for daily use and letting the service cosign his transactions.
3131
This standard will help in enabling a party other than the service provider to recover the wallet without any help from the service provider.
3232

3333
==Specification==
3434

3535
For a set of public keys, ensure that they have been received in compressed form:
36-
36+
3737
022df8750480ad5b26950b25c7ba79d3e37d75f640f8e5d9bcd5b150a0f85014da
38-
03e3818b65bcc73a7d64064106a859cc1a5a728c4345ff0b641209fba0d90de6e9
38+
03e3818b65bcc73a7d64064106a859cc1a5a728c4345ff0b641209fba0d90de6e9
3939
021f2f6e1e50cb6a953935c3601284925decd3fd21bc445712576873fb8c6ebc18
40-
41-
Sort them lexicographically according to their binary representation:
42-
40+
41+
Sort them lexicographically according to their binary representation:
42+
4343
021f2f6e1e50cb6a953935c3601284925decd3fd21bc445712576873fb8c6ebc18
4444
022df8750480ad5b26950b25c7ba79d3e37d75f640f8e5d9bcd5b150a0f85014da
4545
03e3818b65bcc73a7d64064106a859cc1a5a728c4345ff0b641209fba0d90de6e9
4646
47-
..before using the resulting list of keys in a standard multisig redeem script:
48-
47+
..before using the resulting list of keys in a standard multisig redeem script:
48+
4949
OP_2 021f2f6e1e50cb6a953935c3601284925decd3fd21bc445712576873fb8c6ebc18 022df8750480ad5b26950b25c7ba79d3e37d75f640f8e5d9bcd5b150a0f85014da 03e3818b65bcc73a7d64064106a859cc1a5a728c4345ff0b641209fba0d90de6e9 OP_3 OP_CHECKMULTISIG
5050
5151
Hash the redeem script according to BIP-0016 to get the P2SH address.
52-
52+
5353
3Q4sF6tv9wsdqu2NtARzNCpQgwifm2rAba
54-
54+
5555
==Compatibility==
5656
* Uncompressed keys are incompatible with this specification. A compatible implementation should not automatically compress keys. Receiving an uncompressed key from a multisig participant should be interpreted as a sign that the user has an incompatible implementation.
5757
* P2SH addresses do not reveal information about the script that is receiving the funds. For this reason it is not technically possible to enforce this BIP as a rule on the network. Also, it would cause a hard fork.
@@ -75,11 +75,11 @@ Vector 1
7575
** 39bgKC7RFbpoCRbtD5KEdkYKtNyhpsNa3Z
7676
7777
Vector 2 (Already sorted, no action required)
78-
* List:
78+
* List:
7979
** 02632b12f4ac5b1d1b72b2a3b508c19172de44f6f46bcee50ba33f3f9291e47ed0
8080
** 027735a29bae7780a9755fae7a1c4374c656ac6a69ea9f3697fda61bb99a4f3e77
8181
** 02e2cc6bd5f45edd43bebe7cb9b675f0ce9ed3efe613b177588290ad188d11b404
82-
* Sorted:
82+
* Sorted:
8383
** 02632b12f4ac5b1d1b72b2a3b508c19172de44f6f46bcee50ba33f3f9291e47ed0
8484
** 027735a29bae7780a9755fae7a1c4374c656ac6a69ea9f3697fda61bb99a4f3e77
8585
** 02e2cc6bd5f45edd43bebe7cb9b675f0ce9ed3efe613b177588290ad188d11b404
@@ -89,12 +89,12 @@ Vector 2 (Already sorted, no action required)
8989
** 3CKHTjBKxCARLzwABMu9yD85kvtm7WnMfH
9090
9191
Vector 3:
92-
* List:
92+
* List:
9393
** 030000000000000000000000000000000000004141414141414141414141414141
9494
** 020000000000000000000000000000000000004141414141414141414141414141
9595
** 020000000000000000000000000000000000004141414141414141414141414140
9696
** 030000000000000000000000000000000000004141414141414141414141414140
97-
* Sorted:
97+
* Sorted:
9898
** 020000000000000000000000000000000000004141414141414141414141414140
9999
** 020000000000000000000000000000000000004141414141414141414141414141
100100
** 030000000000000000000000000000000000004141414141414141414141414140
@@ -105,11 +105,11 @@ Vector 3:
105105
** 32V85igBri9zcfBRVupVvwK18NFtS37FuD
106106
107107
Vector 4: (from bitcore)
108-
* List:
108+
* List:
109109
** 022df8750480ad5b26950b25c7ba79d3e37d75f640f8e5d9bcd5b150a0f85014da
110-
** 03e3818b65bcc73a7d64064106a859cc1a5a728c4345ff0b641209fba0d90de6e9
110+
** 03e3818b65bcc73a7d64064106a859cc1a5a728c4345ff0b641209fba0d90de6e9
111111
** 021f2f6e1e50cb6a953935c3601284925decd3fd21bc445712576873fb8c6ebc18
112-
* Sorted:
112+
* Sorted:
113113
** 021f2f6e1e50cb6a953935c3601284925decd3fd21bc445712576873fb8c6ebc18
114114
** 022df8750480ad5b26950b25c7ba79d3e37d75f640f8e5d9bcd5b150a0f85014da
115115
** 03e3818b65bcc73a7d64064106a859cc1a5a728c4345ff0b641209fba0d90de6e9
@@ -119,13 +119,13 @@ Vector 4: (from bitcore)
119119
** 3Q4sF6tv9wsdqu2NtARzNCpQgwifm2rAba
120120
121121
==Acknowledgements==
122-
The authors wish to thank BtcDrak and Luke-Jr for their involvement & contributions in the early discussions of this BIP.
122+
The authors wish to thank BtcDrak and Luke-Jr for their involvement & contributions in the early discussions of this BIP.
123123

124-
==Usage & Implementations==
125-
* [[https://github.com/bitcoin/bips/blob/master/bip-0045.mediawiki#address-generation-procedure|BIP-0045]] - Structure for Deterministic P2SH Multisignature Wallets
126-
* [[https://github.com/bitpay/bitcore/blob/50a868cb8cdf2be04bb1c5bf4bcc064cc06f5888/lib/script/script.js#L541|Bitcore]]
124+
==Usage & Implementations==
125+
* [[https://github.com/bitcoin/bips/blob/master/bip-0045.mediawiki#address-generation-procedure|BIP-0045]] - Structure for Deterministic P2SH Multisignature Wallets
126+
* [[https://github.com/bitpay/bitcore/blob/50a868cb8cdf2be04bb1c5bf4bcc064cc06f5888/lib/script/script.js#L541|Bitcore]]
127127
* [[https://github.com/haskoin/haskoin-core/blob/b41b1deb0989334a7ead6fc993fb8b02f0c00810/haskoin-core/Network/Haskoin/Script/Parser.hs#L112-L122|Haskoin]] - Bitcoin implementation in Haskell
128-
* [[https://github.com/etotheipi/BitcoinArmory/blob/268db0f3fa20c989057bd43343a43b2edbe89aeb/armoryengine/ArmoryUtils.py#L1441|Armory]]
128+
* [[https://github.com/etotheipi/BitcoinArmory/blob/268db0f3fa20c989057bd43343a43b2edbe89aeb/armoryengine/ArmoryUtils.py#L1441|Armory]]
129129
* [[https://github.com/bitcoinj/bitcoinj/blob/master/core/src/main/java/org/bitcoinj/script/ScriptBuilder.java#L331|BitcoinJ]]
130130
131131
== References ==

Diff for: bip-0068.mediawiki

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ If bit (1 << 31) of the sequence number is set, then no consensus meaning is app
3333

3434
If bit (1 << 31) of the sequence number is not set, then the sequence number is interpreted as an encoded relative lock-time.
3535

36-
The sequence number encoding is interpreted as follows:
36+
The sequence number encoding is interpreted as follows:
3737

3838
Bit (1 << 22) determines if the relative lock-time is time-based or block based: If the bit is set, the relative lock-time specifies a timespan in units of 512 seconds granularity. The timespan starts from the median-time-past of the output’s previous block, and ends at the MTP of the previous block. If the bit is not set, the relative lock-time specifies a number of blocks.
3939

@@ -65,7 +65,7 @@ enum {
6565
/* Interpret sequence numbers as relative lock-time constraints. */
6666
LOCKTIME_VERIFY_SEQUENCE = (1 << 0),
6767
};
68-
68+
6969
/* Setting nSequence to this value for every input in a transaction
7070
* disables nLockTime. */
7171
static const uint32_t SEQUENCE_FINAL = 0xffffffff;
@@ -245,7 +245,7 @@ The most efficient way to calculate sequence number from relative lock-time is w
245245
// 0 <= nHeight < 65,535 blocks (1.25 years)
246246
nSequence = nHeight;
247247
nHeight = nSequence & 0x0000ffff;
248-
248+
249249
// 0 <= nTime < 33,554,431 seconds (1.06 years)
250250
nSequence = (1 << 22) | (nTime >> 9);
251251
nTime = (nSequence & 0x0000ffff) << 9;

0 commit comments

Comments
 (0)