[RFC] Lightning payment format



Summary:

Olaoluwa Osuntokun critiques the encoding used in Bitcoin addresses, stating that it doesn't carry over to the Lightning Network payreq use-case. However, it is useful for QR codes and denser than hex. The encoder/decoder example now includes fallback addresses and a tweaked format where the first 5-bit value represents the witness version (17 for p2pkh, 18 for p2sh). The encoding can be awkward in some places due to trying to fit on 5 bit boundaries, but ideas are welcome to improve this. With the implementation of key recovery, having a checksum is not completely pointless.


Updated on: 2023-05-24T01:11:32.147883+00:00