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

BOLT 11: make UPPERCASE explicit. (#677)

Explicitly mirror the BIP-173 advice for QR codes, and note the reader
requirements.

Fixes: #659
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2020-08-04 06:48:22 +09:30 committed by GitHub
parent 50b7391a6e
commit f8ef3b4222
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,10 +35,12 @@ encoding.
A writer:
- MUST encode the payment request in Bech32 (see BIP-0173)
- SHOULD use upper case for QR codes (see BIP-0173)
- MAY exceed the 90-character limit specified in BIP-0173.
A reader:
- MUST parse the address as Bech32, as specified in BIP-0173 (also without the character limit).
- Note: this includes handling uppercase as specified by BIP-0173
- if the checksum is incorrect:
- MUST fail the payment.