1
0
mirror of https://github.com/lightning/bolts.git synced 2024-11-19 10:00:04 +01:00

Make unit explicit encoded in BOLT11 invoice

Rewording
This commit is contained in:
Chris Stewart 2018-09-17 14:35:56 -05:00 committed by Rusty Russell
parent 1fd1e76f9e
commit 25a9debcf3

View File

@ -43,7 +43,7 @@ and MUST fail if the checksum is incorrect.
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 and `lnbcrt` for bitcoin regtest)
1. `amount`: optional number in that currency, followed by an optional
`multiplier` letter
`multiplier` letter. The unit encoded here is the 'social' convention of a payment unit -- in the case of Bitcoin the unit is 'bitcoin' NOT satoshis.
The following `multiplier` letters are defined: