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

Add test vectors for option_anchors_zero_fee_htlc_tx #1018

Merged

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.

03-transactions.md Outdated Show resolved Hide resolved
03-transactions.md Show resolved Hide resolved
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.

@wpaulino wpaulino force-pushed the anchors-zero-fee-htlc-tx-test-vectors branch from bcd452e to 2c30ed3 Compare August 30, 2022 17:11
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!

03-transactions.md Outdated Show resolved Hide resolved
03-transactions.md Outdated Show resolved Hide resolved
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 wpaulino force-pushed the anchors-zero-fee-htlc-tx-test-vectors branch from 2c30ed3 to 77eca9c Compare February 22, 2023 19:59
@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