Skip to content

Commit

Permalink
Bolt 11: add distinct HRP prefix for Bitcoin signet (#844)
Browse files Browse the repository at this point in the history
Judging from the comment
https://github.com/bitcoin/bitcoin/pull/18267/files#r491150895 in the
Signet PR all test networks should have the same bech32_hrp prefix (even
regtest). That's why 'tb' was chosen for Signet as well.
This is not optimal for LN as invoices shouldn't be vague in
what network they were issued for.
Therefore we add the explicit prefix 'lntbs' for Signet invoices.
  • Loading branch information
guggero authored Mar 2, 2021
1 parent ba00bf8 commit 80c1ae1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 11-payment-encoding.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ A reader:

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)
`lntb` for Bitcoin testnet, `lntbs` for Bitcoin signet, and `lnbcrt` for
Bitcoin regtest)
1. `amount`: optional number in that currency, followed by an optional
`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.

Expand Down

0 comments on commit 80c1ae1

Please sign in to comment.