@@ -205,12 +205,12 @@ A writer:
205
205
- MUST specify the most-preferred field first, followed by less-preferred fields, in order.
206
206
207
207
A reader:
208
- - MUST skip over unknown fields, OR an ` f ` field with unknown ` version ` , OR ` p ` , ` h ` , ` s ` or
209
- ` n ` fields that do NOT have ` data_length ` s of 52, 52, 52 or 53, respectively.
208
+ - MUST skip over unknown fields, OR an ` f ` field with unknown ` version ` , OR ` p ` , ` h ` or
209
+ ` n ` fields that do NOT have ` data_length ` s of 52, 52 or 53, respectively.
210
210
- MUST fail the payment if a mandatory field (` p ` or ` s ` ) was skipped due to an incorrect
211
211
length.
212
212
- MUST fail the payment if a ` d ` field is not present and a ` h ` field was skipped due to an
213
- incorrect length.
213
+ incorrect length.
214
214
- if the ` 9 ` field contains unknown _ odd_ bits that are non-zero:
215
215
- MUST ignore the bit.
216
216
- if the ` 9 ` field contains unknown _ even_ bits that are non-zero:
@@ -220,8 +220,10 @@ A reader:
220
220
description.
221
221
- if a valid ` n ` field is provided:
222
222
- MUST use the ` n ` field to validate the signature instead of performing signature recovery.
223
- - if there is a valid ` s ` field:
224
- - MUST use that as [ ` payment_secret ` ] ( 04-onion-routing.md#tlv_payload-payload-format )
223
+ - if a valid ` s ` field is not provided:
224
+ - MUST fail the payment.
225
+ - otherwise:
226
+ - MUST use the ` s ` field as [ ` payment_secret ` ] ( 04-onion-routing.md#tlv_payload-payload-format )
225
227
- if the ` c ` field (` min_final_cltv_expiry_delta ` ) is not provided:
226
228
- MUST use an expiry delta of at least 18 when making the payment
227
229
- if an ` m ` field is provided:
@@ -790,6 +792,9 @@ Breakdown:
790
792
> ### Invalid sub-millisatoshi precision.
791
793
> lnbc2500000001p1pvjluezpp5qqqsyqcyq5rqwzqfqqqsyqcyq5rqwzqfqqqsyqcyq5rqwzqfqypqdq5xysxxatsyp3k7enxv4jsxqzpusp5zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg3zygs9qrsgq0lzc236j96a95uv0m3umg28gclm5lqxtqqwk32uuk4k6673k6n5kfvx3d2h8s295fad45fdhmusm8sjudfhlf6dcsxmfvkeywmjdkxcp99202x
792
794
795
+ > ### Missing required ` s ` field.
796
+ > lnbc20m1pvjluezpp5qqqsyqcyq5rqwzqfqqqsyqcyq5rqwzqfqqqsyqcyq5rqwzqfqypqhp58yjmdan79s6qqdhdzgynm4zwqd5d7xmw5fk98klysy043l2ahrqs9qrsgq7ea976txfraylvgzuxs8kgcw23ezlrszfnh8r6qtfpr6cxga50aj6txm9rxrydzd06dfeawfk6swupvz4erwnyutnjq7x39ymw6j38gp49qdkj
797
+
793
798
# Authors
794
799
795
800
[ FIXME: ]
0 commit comments