bitcoinjs / bolt11

A library for encoding and decoding lightning network payment requests as defined in BOLT #11.
MIT License
93 stars 65 forks source link

Add decoding support for millisatoshis #9

Closed jordodev closed 5 years ago

jordodev commented 5 years ago

Currently invoices with a 'p' divisor fail saying "Amount is outside of valid range" See payreq.js line 318

The standard as defined by BOLT#11 allows for pico (p) encoding.

The Blockstream store are generating LN invoices in millisatoshis.

It's likely, then, that other services that use the ElementsProject c-lightning implementation will also use millisatoshis.