Skip to content

Non-standard lightning network invoice format #77

@asheswook

Description

@asheswook

return "lightning:\( (txt).uppercased() )"

I wondered why I couldn't withdraw from some cryptocurrency exchanges, such as Binance, over the lightning network to the Green lightning wallet.
Through trial and error, I discovered that the invoice provided by the Green wallet is in a non-standard format.

According to BOLT11, the lightning invoice just starts with "ln" such as "lnbc" (for mainnet), "lntb" (for testnet), no other prefix like lightning:. Some exchanges and wallets do not support the ‘lightning:’ format.

Additionally, lightning invoices are not case-sensitive and are typically written in lowercase, so converting them to uppercase is unnecessary.

Although I haven't directly checked green_qt and green_android, I searched the source code and couldn't find the same issue. If you're open to changing, I can implement the change and submit a pull request.
Green_qt not supports Lightning wallet yet, Green_android seems to support but I didn't checked.

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