clams-tech / Remote

Remote control your Core Lightning node
https://remote.clams.tech
GNU General Public License v3.0
41 stars 7 forks source link

bolt11: correctly parse all valid bolt11 hrps #175

Closed niftynei closed 1 year ago

niftynei commented 1 year ago

untested, please merge.

# Human-Readable Part

The human-readable part of a Lightning invoice consists of two sections:
1. `prefix`: `ln` + BIP-0173 currency prefix (e.g. `lnbc` for Bitcoin mainnet, `lntb` for Bitcoin testnet, `lntbs` for Bitcoin signet, and `lnbcrt` for Bitcoin regtest)

src: https://github.com/lightning/bolts/blob/master/11-payment-encoding.md#human-readable-part Reported-By: @pocolocosv

lnbc1QWFyb24 commented 1 year ago

Thanks for this, so I guess me saying that Clams is network is agnostic was a bit of a lie lol 😆 Has been merged and will deploy automatically to our staging app soon. Planning on getting a prod release out today and will include this.

niftynei commented 1 year ago

works great now, thanks!!