ElementsProject / ElementsProject/lightning

pyln Create Invoice with `s` Tag and Feature Bits

Open
#8,396 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
3.1k
Forks
1k
Avg merge
4d 10h
Merged PRs (30d)
13

Description

I'm trying to craft a custom invoice using the pyln `Invoice` class. The invoices I manage to create seem valid and they are payable via some wallets, but most wallets fail to pay them with various errors.

When I decode the invoices with LND (sorry, I don't have CLN setup yet), I notice that the invoice does not include any `features` additionally, the `payment_addr` is all zeros.

As I understand it, lnd uses the term `payment_addr` to refer to the `s` tag from bolt11 (payment secret)

Is it possible to inject a custom `s` tag using the `Invoice` class? By inspecting the source, it seems there is no case to handle the `s` tag so it gives error like `unknown tag: s`. Also, is it possible to add feature bits to the invoice?

I noticed that the Invoice class has not been updated in 5yrs. So it probably won't handle MPP or blinded paths either. Is this being maintained? Are there other python libs you'd recommend to build custom invoices?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.