Skip to content

Commit 80c1ae1

Browse files
authored
Bolt 11: add distinct HRP prefix for Bitcoin signet (#844)
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.
1 parent ba00bf8 commit 80c1ae1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

11-payment-encoding.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ A reader:
4848

4949
The human-readable part of a Lightning invoice consists of two sections:
5050
1. `prefix`: `ln` + BIP-0173 currency prefix (e.g. `lnbc` for Bitcoin mainnet,
51-
`lntb` for Bitcoin testnet, and `lnbcrt` for Bitcoin regtest)
51+
`lntb` for Bitcoin testnet, `lntbs` for Bitcoin signet, and `lnbcrt` for
52+
Bitcoin regtest)
5253
1. `amount`: optional number in that currency, followed by an optional
5354
`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.
5455

0 commit comments

Comments
 (0)