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
*[Pruning the Network View](#pruning-the-network-view)
31
+
*[Recommendations for Routing](#recommendations-for-routing)
32
+
*[References](#references)
33
+
21
34
## The `announcement_signatures` Message
22
35
23
36
This is a direct message between two endpoints of a channel and serves as an opt-in mechanism to allow the announcement of the channel to the rest of the network.
@@ -34,17 +47,17 @@ The willingness of the initiating node to announce the channel is signaled durin
34
47
35
48
### Requirements
36
49
37
-
The `announcement_signatures` message is created by constructing a `channel_announcement` message corresponding to the newly established channel and signing it with the secrets matching an endpoint's `node_id` and `bitcoin_key`. The message is then sent using an `announcement_signatures`.
50
+
The `announcement_signatures` message is created by constructing a `channel_announcement` message, corresponding to the newly established channel, and signing it with the secrets matching an endpoint's `node_id` and `bitcoin_key`. The message is then sent using an `announcement_signatures`.
38
51
39
52
The `short_channel_id` is the unique description of the funding transaction.
40
53
It is constructed with the most significant 3 bytes indicating the block
41
54
height, the next 3 bytes indicating the transaction index within the
42
55
block, and the least significant two bytes indicating the output
43
56
index that pays to the channel.
44
57
45
-
If the `open_channel` message had the `announce_channel` bit set, then both nodes must send the `announcement_signatures` message, otherwise they MUST NOT.
58
+
If the `open_channel` message had the `announce_channel` bit set, then both nodes MUST send the `announcement_signatures` message, otherwise they MUST NOT.
46
59
47
-
If sent, `announcement_signatures` messages MUST NOT be sent until `funding_locked` has been sent and the funding transaction has at least 6 confirmations.
60
+
If sent, `announcement_signatures` messages MUST NOT be sent until `funding_locked` has been sent and the funding transaction has at least six confirmations.
48
61
49
62
The recipient MAY fail the channel if the `node_signature` or `bitcoin_signature` is incorrect.
50
63
The recipient SHOULD queue the `channel_announcement` message for its peers if it has sent and received a valid `announcement_signatures` message.
@@ -61,10 +74,10 @@ its fee levels and expiry using `channel_update`.
61
74
Proving the existence of a channel between `node_1` and
62
75
`node_2` requires:
63
76
64
-
1.Proving that the funding transaction pays to `bitcoin_key_1` and
65
-
`bitcoin_key_2`.
66
-
2.Proving that `node_1` owns `bitcoin_key_1`
67
-
3.Proving that `node_2` owns `bitcoin_key_2`
77
+
1.proving that the funding transaction pays to `bitcoin_key_1` and
78
+
`bitcoin_key_2`
79
+
2.proving that `node_1` owns `bitcoin_key_1`
80
+
3.proving that `node_2` owns `bitcoin_key_2`
68
81
69
82
The first proof is accomplished by assuming that all nodes know the unspent
70
83
transaction outputs, and thus can find the output given by
@@ -77,7 +90,7 @@ and `bitcoin_signature_2`, generated by each `bitcoin_key` and signing
77
90
the corresponding `node_id`).
78
91
79
92
It is also necessary to prove that `node_1` and `node_2` both agree on this
80
-
announcement message; that is accomplished by having a signature from each
93
+
announcement message; this is accomplished by having a signature from each
81
94
`node_id` signing the message (`node_signature_1` and
82
95
`node_signature_2`).
83
96
@@ -177,7 +190,7 @@ optional) ones will have odd feature bits, incompatible ones will have
177
190
even feature bits (["It's OK to be odd!"](00-introduction.md#glossary-and-terminology-guide)).
178
191
Incompatible features will result in the announcement not being forwarded by nodes that don't understand them.
179
192
180
-
## The `node_announcement`message
193
+
## The `node_announcement`Message
181
194
182
195
This allows a node to indicate extra data associated with it, in
183
196
addition to its public key. To avoid trivial denial of service attacks,
@@ -286,12 +299,12 @@ to be ordered in ascending order, unknown ones can be safely ignored.
286
299
Future fields beyond `addresses` can still be added, optionally with
287
300
padding within `addresses` if they require certain alignment.
288
301
289
-
## The `channel_update`message
302
+
## The `channel_update`Message
290
303
291
304
After a channel has been initially announced, each side independently
292
305
announces the fees and minimum expiry delta it requires to relay HTLCs
293
-
through this channel. They use the 8-byte
294
-
channel shortid that matches the `channel_announcement` and one bit
306
+
through this channel. Each uses the 8-byte
307
+
channel shortid that matches the `channel_announcement` and 1 bit
295
308
in the `flags` field
296
309
to indicate which end this is. A node can do this multiple times, if
0 commit comments