Skip to content

Commit a3693cb

Browse files
committed
Recommend random delays before invoice/invoice_error response
For similar reasons to the previous commit, we also add recommendations for inserting random delays to the BOLT12 flow to impair timing analysis capabilities.
1 parent 30515fb commit a3693cb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

12-offer-encoding.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,7 @@ The reader:
529529
- otherwise (no `offer_amount`):
530530
- MUST reject the invoice request if it does not contain `invreq_amount`.
531531
- SHOULD send an invoice in response using the `onionmsg_tlv` `reply_path`.
532+
- SHOULD add a random delay before sending the invoice.
532533
- otherwise (no `offer_issuer_id` or `offer_paths`, not a response to our offer):
533534
- MUST reject the invoice request if any of the following are present:
534535
- `offer_chains`, `offer_features` or `offer_quantity_max`.
@@ -714,6 +715,7 @@ A writer of an invoice:
714715
`invreq_chain`.
715716
- if the invoice is in response to an `invoice_request`:
716717
- MUST copy all non-signature fields from the invoice request (including unknown fields).
718+
- SHOULD add a random delay before sending the invoice.
717719
- if `invreq_amount` is present:
718720
- MUST set `invoice_amount` to `invreq_amount`
719721
- otherwise:
@@ -880,6 +882,7 @@ A writer of an invoice_error:
880882
- MUST set `suggested_value` to a valid field for that `tlv_fieldnum`.
881883
- otherwise:
882884
- MUST NOT set `suggested_value`.
885+
- SHOULD add a random delay before sending the `invoice_error`.
883886

884887
A reader of an invoice_error:
885888
FIXME!

0 commit comments

Comments
 (0)