You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bip-0088.mediawiki
+3-3
Original file line number
Diff line number
Diff line change
@@ -89,7 +89,7 @@ installation of malicious or incorrect profiles, though.
89
89
90
90
==Specification==
91
91
92
-
The format for the template was choosen to make it easy to read, convenient and visually unambigous.
92
+
The format for the template was chosen to make it easy to read, convenient and visually unambigous.
93
93
94
94
Template starts with optional prefix <code>m/</code>, and then one or more sections delimited by the slash character (<code>/</code>).
95
95
@@ -127,13 +127,13 @@ Constraints:
127
127
# To avoid ambiguity, an index range that matches a single value MUST be specified as Unit range.
128
128
# To avoid ambiguity, an index range <code>0-2147483647</code> is not allowed, and MUST be specified as Wildcard index template instead
129
129
# For Non-unit range, range_end MUST be larger than range_start.
130
-
# If there is more than one index range within the Ranged index template, range_start of the second and any subsequent range MUST be larger than the range_end of the preceeding range.
130
+
# If there is more than one index range within the Ranged index template, range_start of the second and any subsequent range MUST be larger than the range_end of the preceding range.
131
131
# To avoid ambiguity, all representations of integer values larger than 0 MUST NOT start with character <code>0</code> (no leading zeroes allowed).
132
132
# If hardened marker appears within any section in the path template, all preceding sections MUST also specify hardened matching.
133
133
# To avoid ambiguity, if a hardened marker appears within any section in the path template, all preceding sections MUST also use the same hardened marker (either <code>h</code> or <code>'</code>).
134
134
# To avoid ambiguity, trailing slashes (for example, <code>1/2/</code>) and duplicate slashes (for example, <code>0//1</code>) MUST NOT appear in the template.
135
135
136
-
It may be desireable to have fully unambiguous encoding, where for each valid path template string, there is no other valid template string that matches the exact same set of paths. This would enable someone to compare templates for equality through a simple string equality check, without any parsing.
136
+
It may be desirable to have fully unambiguous encoding, where for each valid path template string, there is no other valid template string that matches the exact same set of paths. This would enable someone to compare templates for equality through a simple string equality check, without any parsing.
Copy file name to clipboardExpand all lines: bip-0152.mediawiki
+1-1
Original file line number
Diff line number
Diff line change
@@ -211,7 +211,7 @@ There are several design goals for the Short ID calculation:
211
211
212
212
SipHash is a secure, fast, and simple 64-bit MAC designed for network traffic authentication and collision-resistant hash tables. We truncate the output from SipHash-2-4 to 48 bits (see next section) in order to minimize space. The resulting 48-bit hash is certainly not large enough to avoid intentionally created individual collisons, but by using the block hash as a key to SipHash, an attacker cannot predict what keys will be used once their transactions are actually included in a relayed block. We mix in a per-connection 64-bit nonce to obtain independent short IDs on every connection, so that even block creators cannot control where collisions occur, and random collisions only ever affect a small number of connections at any given time. The mixing is done using SHA256(block_header || nonce), which is slow compared to SipHash, but only done once per block. It also adds the ability for nodes to choose the nonce in a better than random way to minimize collisions, though that is not necessary for correct behaviour. Conversely, nodes can also abuse this ability to increase their ability to introduce collisions in the blocks they relay themselves. However, they can already cause more problems by simply refusing to relay blocks. That is inevitable, and this design only seeks to prevent network-wide misbehavior.
213
213
214
-
====Random collision probabilty====
214
+
====Random collision probability====
215
215
216
216
Thanks to the block-header-based SipHash keys, we can assume that the only collisions on links between honest nodes are random ones.
Copy file name to clipboardExpand all lines: bip-0176.mediawiki
+1-1
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ Bits is presented here as the standard term for 100 (one hundred) satoshis or 1/
16
16
== Motivation ==
17
17
The bitcoin price has grown over the years and once the price is past $10,000 USD or so, bitcoin amounts under $10 USD start having enough decimal places that it's difficult to tell whether the user is off by a factor of 10 or not. Switching the denomination to "bits" makes comprehension easier. For example, when BTC is $15,000 USD, $10.05 is a somewhat confusing 0.00067 BTC, versus 670 bits, which is a lot clearer.
18
18
19
-
Additonally, reverse comparisons are easier as 59 bits being $1 is easier to comprehend for most people than 0.000059 BTC being $1. Similar comparisons can be made to other currencies: 1 yen being 0.8 bits, 1 won being 0.07 bits and so on.
19
+
Additionally, reverse comparisons are easier as 59 bits being $1 is easier to comprehend for most people than 0.000059 BTC being $1. Similar comparisons can be made to other currencies: 1 yen being 0.8 bits, 1 won being 0.07 bits and so on.
Copy file name to clipboardExpand all lines: bip-0330.mediawiki
+1-1
Original file line number
Diff line number
Diff line change
@@ -210,7 +210,7 @@ The reconcildiff message is used by reconciliation initiator to announce transac
210
210
| uint32[] || ask_shortids || The short IDs that the sender did not have.
211
211
|}
212
212
213
-
Upon receipt a "reconcildiff" message with ''success=1'' (reconciliation success), a node sends an "inv" message for the transactions requested by 32-bit IDs (first vector) containing their wtxids (with parent transactions occuring before their dependencies).
213
+
Upon receipt a "reconcildiff" message with ''success=1'' (reconciliation success), a node sends an "inv" message for the transactions requested by 32-bit IDs (first vector) containing their wtxids (with parent transactions occurring before their dependencies).
214
214
If ''success=0'' (reconciliation failure), receiver should announce all transactions from the reconciliation set via an "inv" message.
215
215
In both cases, transactions the sender of the message thinks the receiver is missing are announced via an "inv" message.
0 commit comments