Skip to content

Conversation

@erickcestari
Copy link
Contributor

An offer with offer_chains present but containing zero chain hashes is invalid, as it makes invoice requests impossible. The payer cannot satisfy the requirement to set invreq_chain to "one of offer_chains" when the array is empty.

Add explicit requirement for readers to reject such offers, along with rationale and a test vector.

Closes #1282

An offer with offer_chains present but containing zero chain hashes
is invalid, as it makes invoice requests impossible—the payer cannot
satisfy the requirement to set invreq_chain to "one of offer_chains"
when the array is empty.

Add explicit requirement for readers to reject such offers, along with
rationale and a test vector.
Copy link
Collaborator

@t-bast t-bast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 82ee861

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 12: Clarify handling of empty offer_chains field

2 participants