Skip to content

Conversation

@TheBlueMatt
Copy link
Collaborator

@TheBlueMatt TheBlueMatt commented Dec 9, 2025

0.2-bindings version of #4268. No reason to wait for a full backport to 0.2 cause its gonna conflict heavily with what's already in 0.2-bindings.

AttributionData is a part of the public UpdateFulfillHTLC and UpdateFailHTLC messages, but its not actually pub. Yet again re-exports bite us and leave us with a broken public API - we ended up accidentally sealing AttributionData.

Instead, here, we just make onion_utils pub so that we avoid making the same mistake in the future.

Note that this still leaves us with arather useless public AttributionData API - it can't be created, updated, or decoded, it can only be serialized and deserialized, but at least it exists.

Best reviewed with --color-moved --color-moved-ws=ignore-space-change.

`AttributionData` is a part of the public `UpdateFulfillHTLC` and
`UpdateFailHTLC` messages, but its not actually `pub`. Yet again
re-exports bite us and leave us with a broken public API - we
ended up accidentally sealing `AttributionData`.

Instead, here, we just make `onion_utils` `pub` so that we avoid
making the same mistake in the future.

Note that this still leaves us with arather useless public
`AttributionData` API - it can't be created, updated, or decoded,
it can only be serialized and deserialized, but at least it exists.
@ldk-reviews-bot
Copy link

ldk-reviews-bot commented Dec 9, 2025

I've assigned @valentinewallace as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

@ldk-reviews-bot
Copy link

👋 The first review has been submitted!

Do you think this PR is ready for a second reviewer? If so, click here to assign a second reviewer.

@TheBlueMatt TheBlueMatt merged commit 25236b0 into lightningdevkit:0.2-bindings Dec 9, 2025
1 of 23 checks passed
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