Skip to content

Add test vectors for option_anchors_zero_fee_htlc_tx #1018

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

Merged
merged 1 commit into from
Feb 28, 2023
Merged

Add test vectors for option_anchors_zero_fee_htlc_tx #1018

merged 1 commit into from
Feb 28, 2023

Conversation

wpaulino
Copy link
Contributor

While working on the integration of option_anchors_zero_fee_htlc_tx for rust-lightning, I noticed that the test vectors were only for the original option_anchors commitment format, which is also the case for BOLT-3.

These are the same test vectors as those found under Appendix F, except that each HTLC has a zero fee transaction instead, resulting in a signature change.

t-bast added a commit to ACINQ/eclair that referenced this pull request Aug 30, 2022
@t-bast
Copy link
Collaborator

t-bast commented Aug 30, 2022

ACK bcd452e, eclair agrees with those test vectors. Just need to fix the markdown link and we should be good to go.

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 2c30ed3

t-bast added a commit to ACINQ/eclair that referenced this pull request Dec 16, 2022
Copy link
Contributor

@ellemouton ellemouton left a comment

Choose a reason for hiding this comment

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

See #1056 for 2 changes that I think apply here too. Other than those 2 things, LGTM!

These are the same test vectors as those found under Appendix F, except
that each HTLC has a zero fee transaction instead, resulting in a
signature change.
@wpaulino
Copy link
Contributor Author

Nice catch! Confirmed rust-lightning matches these now.

Copy link
Contributor

@ellemouton ellemouton left a comment

Choose a reason for hiding this comment

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

ACK 77eca9c 🔥

@t-bast
Copy link
Collaborator

t-bast commented Feb 28, 2023

ACK 77eca9c, eclair works fine with the latest changes, thanks @wpaulino and @ellemouton!

@t-bast t-bast merged commit b02bb6b into lightning:master Feb 28, 2023
t-bast added a commit to ACINQ/eclair that referenced this pull request Feb 28, 2023
t-bast added a commit to ACINQ/eclair that referenced this pull request Feb 28, 2023
Add latest changes from lightning/bolts#1018
Add latest fixes from lightning/bolts#1056
@wpaulino wpaulino deleted the anchors-zero-fee-htlc-tx-test-vectors branch February 28, 2023 18:12
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.

3 participants