You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[good first issue] Add PaymentKind::payment_hash as an accessor method #730
I'm a bit on the fence regarding adding Lightning-specific accessor APIs for PaymentKind which is explicitly an umbrella type also covering other payment methods that don't feature payment hashes/secrets/pre-images.
Just annoying to have to match every time you want to extract stuff, but doesn't really matter that much, if you think its gross, close.
Yeah, still not convinced we should do this, and in #734 it turned out that we can't even easily expose it in bindings due to PaymentKind being an enum interface, disallowing to expose further methods. So, for the time being, I'll close this as wontfix. Maybe if uniffi changes some of the requirements we can revisit this if we still think the sugar would be worth it.
Activity
jgmcalpine commentedon Dec 29, 2025
Hi! I would like to work on this issue, I am setting up my environment and will submit a PR shortly.
jgmcalpine commentedon Dec 29, 2025
I've implemented the accessor methods and opened a PR for review here: #734
tnull commentedon Jan 5, 2026
I'm a bit on the fence regarding adding Lightning-specific accessor APIs for
PaymentKindwhich is explicitly an umbrella type also covering other payment methods that don't feature payment hashes/secrets/pre-images.TheBlueMatt commentedon Jan 5, 2026
Just annoying to have to match every time you want to extract stuff, but doesn't really matter that much, if you think its gross, close.
tnull commentedon Jan 8, 2026
Yeah, still not convinced we should do this, and in #734 it turned out that we can't even easily expose it in bindings due to
PaymentKindbeing anenum interface, disallowing to expose further methods. So, for the time being, I'll close this as wontfix. Maybe ifuniffichanges some of the requirements we can revisit this if we still think the sugar would be worth it.