Skip to content

Stricter Bolt11 invoice parsing#3122

Merged
t-bast merged 2 commits intomasterfrom
invalid-bolt11-invoices
Jun 26, 2025
Merged

Stricter Bolt11 invoice parsing#3122
t-bast merged 2 commits intomasterfrom
invalid-bolt11-invoices

Conversation

@t-bast
Copy link
Copy Markdown
Member

@t-bast t-bast commented Jun 25, 2025

We make our Bolt11 invoice parser stricter:

  • reject routing hint field with empty paths
  • reject invalid invoice expiries
  • reject invalid invoice min_final_cltv_expiry_delta

We also remove a duplicated requirement around payment_secret and fix a few compiler warnings.

Fixes #3104

We make our Bolt11 invoice parser stricter:

- reject routing hint field with empty paths
- reject invalid invoice expiries
- reject invalid invoice `min_final_cltv_expiry_delta`

We also remove a duplicated requirement around `payment_secret` and
fix a few compiler warnings.

Fixes #3104
@t-bast t-bast requested a review from thomash-acinq June 25, 2025 15:50
@t-bast t-bast marked this pull request as ready for review June 25, 2025 15:50
thomash-acinq
thomash-acinq previously approved these changes Jun 25, 2025
@t-bast t-bast merged commit 5e829ac into master Jun 26, 2025
1 check passed
@t-bast t-bast deleted the invalid-bolt11-invoices branch June 26, 2025 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BOLT 11 Compliance: Invoice r field don't reject empty routing hints

2 participants