File tree 1 file changed +12
-2
lines changed
1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -1140,7 +1140,8 @@ parameter which allows decryption of the `enctlv` field inside the
1140
1140
1141
1141
1 . type: 385 (` onion_message ` ) (` option_onion_messages ` )
1142
1142
2 . data:
1143
- * [ ` 1366*byte ` :` onionmsg ` ]
1143
+ * [ ` u16 ` :` len ` ]
1144
+ * [ ` len*byte ` :` onionmsg ` ]
1144
1145
* [ ` onion_message_tlvs ` :` onion_message_tlvs ` ]
1145
1146
1146
1147
1 . tlvs: ` onion_message_tlvs `
@@ -1155,13 +1156,22 @@ The writer:
1155
1156
- MUST populate the per-hop payloads as described in [ BOLT 4] ( 04-onion-routing.md#onion-messages ) .
1156
1157
- SHOULD retry via a different route if it expects a response and
1157
1158
doesn't receive one after a reasonable period.
1159
+ - SHOULD set ` len ` to 1366 or 32834.
1158
1160
1159
1161
The reader:
1160
1162
- MUST handle the per-hop payloads as described in [ BOLT 4] ( 04-onion-routing.md#onion-messages ) .
1161
1163
- SHOULD accept onion messages from peers without an established channel.
1162
1164
- MAY rate-limit messages by dropping them.
1163
1165
1164
- ## References
1166
+ ## Rationale
1167
+
1168
+ ` len ` allows larger messages to be sent than the standard 1300 bytes
1169
+ allowed for an HTLC onion, but this should be used sparingly as it is
1170
+ reduces anonymity set, hence the recommendation that it either look
1171
+ like an HTLC onion, or if larger, be a fixed size.
1172
+
1173
+
1174
+ # References
1165
1175
1166
1176
1 . <a id =" reference-1 " >[ RFC 1950 "ZLIB Compressed Data Format Specification version 3.3] ( https://www.ietf.org/rfc/rfc1950.txt ) </a >
1167
1177
2 . <a id =" reference-2 " >[ Maximum Compression Factor] ( https://zlib.net/zlib_tech.html ) </a >
You can’t perform that action at this time.
0 commit comments