Skip to content

pyln Create Invoice with s Tag and Feature Bits #8396

Open
@nullcount

Description

@nullcount

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions