Skip to content

Conversation

t-bast
Copy link
Member

@t-bast t-bast commented Jun 27, 2025

This PR contains two independent commits that add to master more stuff from #3107 to minimize the diff in the trampoline work.

In the first commit, we update the Sphinx helpers that create and decrypt attribution data.

In the second commit, we group attribution data in a dedicated (optional) class for each command (CMD_FAIL_HTLC and CMD_FULFILL_HTLC) instead of always adding more fields, which requires updating a lot of test code whenever we need to change the contents. We take this opportunity to add the trampoline_received_at field, and update the pending commands DB.

t-bast added 2 commits June 27, 2025 16:50
We update `Sphinx.scala` to shift hmacs differently to make it easier
to implement trampoline attribution in follow-up PRs.
We group attribution data in a dedicated (optional) class for each
command instead of always adding more fields, which requires updating
a lot of test code whenever we need to change the contents.

We take this opportunity to add the trampoline received at field, and
update the pending commands DB.
thomash-acinq
thomash-acinq previously approved these changes Jun 30, 2025
@t-bast t-bast merged commit d7c020d into master Jun 30, 2025
1 check passed
@t-bast t-bast deleted the refactor-attribution-data branch June 30, 2025 08:48
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