Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offer test vectors #2723

Merged
merged 1 commit into from
Jul 19, 2024
Merged

Offer test vectors #2723

merged 1 commit into from
Jul 19, 2024

Conversation

thomash-acinq
Copy link
Member

@thomash-acinq thomash-acinq commented Aug 14, 2023

@t-bast
Copy link
Member

t-bast commented Jul 19, 2024

Should we update this with the latest test vectors from the Bolt 12 spec PR @thomash-acinq? Are the spec test vectors up-to-date or are we waiting for changes there?

Add test vectors from lightning/bolts#798
Update the TLV ranges for offers and invoice requests
@thomash-acinq
Copy link
Member Author

I've updated the test vectors and the TLV ranges for offers.
The reason why this was this was still a draft is that there are two cases where I disagree with the spec test vectors:

  • 22 is a known feature and an offer with this feature is valid
  • amount and description are optional

I've modified the test vectors for these two cases but it should be updated in the spec.

@thomash-acinq thomash-acinq marked this pull request as ready for review July 19, 2024 11:23
Copy link
Member

@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.

The reason why this was this was still a draft is that there are two cases where I disagree with the spec test vectors:

Gotcha, I'm not sure about the feature bit one, but the other one I agree with you. Can you make sure this is discussed on the spec PR and Rusty is aware of it, so that we can converge? We'll need everyone to validate the test vectors to be able to merge the spec PR.

@thomash-acinq thomash-acinq merged commit e298ba9 into master Jul 19, 2024
1 check passed
@thomash-acinq thomash-acinq deleted the offer-test branch July 19, 2024 12:19
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.

2 participants