Skip to content

Reject offers with some fields present but empty#809

Merged
thomash-acinq merged 1 commit into
masterfrom
empty-offer
Sep 22, 2025
Merged

Reject offers with some fields present but empty#809
thomash-acinq merged 1 commit into
masterfrom
empty-offer

Conversation

@thomash-acinq

@thomash-acinq thomash-acinq commented Sep 22, 2025

Copy link
Copy Markdown
Contributor

Offers or invoices where the fields offer_chains, offer_paths, invoice_paths, invoice_blindedpay are present but empty are considered invalid. While the spec does not necessarily rejects them explicitly, they can't be paid.
Also checks that offer_currency is 3 bytes long.

Fixed #799

Offers or invoices where the fields `offer_chains`, `offer_currency`, `offer_paths`, `invoice_paths`, `invoice_blindedpay` are present but empty are considered invalid.
While the spec does not necessarily rejects them explicitly, they can't be paid.
@thomash-acinq thomash-acinq merged commit b0caf1b into master Sep 22, 2025
2 checks passed
@thomash-acinq thomash-acinq deleted the empty-offer branch September 22, 2025 12:28
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.

BOLT12 Offer Validation: Empty TLV Collections Bypass Required Field Checks

2 participants