Carl Dong
f0b8544eba
doc: Correct createinvoice's invstring description
...
The existing description is incorrect. `createinvoice` doesn't actually
work when supplied with a custom-encoded bolt11 invoice without the
final 520 signature bits appended. If a users tries to do so, some of
their tagged fields will be incorrectly truncated.
`createinvoice` actually expects that the signatures are there, and it
simply ignores them.
See common/bolt11.c's bolt11_decode_nosig:
/* BOLT #11 :
*
* The data part of a Lightning invoice consists of multiple sections:
*
* 1. `timestamp`: seconds-since-1970 (35 bits, big-endian)
* 1. zero or more tagged parts
* 1. `signature`: Bitcoin-style signature of above (520 bits)
*/
if (!pull_uint(&hu5, &data, &data_len, &b11->timestamp, 35))
return decode_fail(b11, fail, "Can't get 35-bit timestamp");
> while (data_len > 520 / 5) {
const char *problem = NULL;
u64 type, data_length;
2023-02-06 15:54:32 -06:00
..
2018-06-18 12:45:00 +02:00
2023-02-04 15:31:16 +10:30
2023-01-30 15:15:41 -06:00
2023-01-31 10:19:45 +10:30
2018-03-04 03:22:32 +01:00
2019-02-18 02:42:29 +00:00
2015-07-18 10:46:53 +09:30
2015-07-18 10:46:53 +09:30
2022-12-19 19:00:39 +01:00
2018-06-08 17:56:48 +02:00
2015-11-20 06:45:19 +10:30
2015-07-18 10:46:53 +09:30
2015-07-18 10:46:53 +09:30
2015-07-18 10:46:53 +09:30
2015-07-18 10:46:53 +09:30
2015-07-18 10:46:53 +09:30
2015-07-18 10:46:53 +09:30
2015-07-20 14:07:25 +09:30
2015-07-20 14:07:25 +09:30
2015-07-20 14:07:25 +09:30
2015-07-20 14:07:25 +09:30
2015-07-18 10:46:53 +09:30
2015-07-18 10:46:53 +09:30
2023-01-25 14:37:56 +01:00
2022-12-19 19:00:39 +01:00
2022-09-24 15:22:27 +09:30
2022-09-29 16:10:57 +09:30
2015-07-18 10:46:53 +09:30
2015-07-18 10:46:53 +09:30
2023-02-04 15:31:16 +10:30
2023-02-05 15:41:19 +10:30
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-11 11:13:27 +10:30
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2022-12-12 15:34:00 +10:30
2023-01-30 15:15:41 -06:00
2023-02-06 15:54:32 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2022-07-14 12:24:48 -05:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-02-04 15:31:16 +10:30
2023-02-01 13:55:00 +10:30
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2022-12-12 15:34:00 +10:30
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2022-07-14 12:24:48 -05:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-02-02 14:56:04 -06:00
2022-08-19 10:27:09 -04:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-02-04 15:31:16 +10:30
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-30 15:15:41 -06:00
2023-01-25 17:57:04 +01:00
2022-12-12 15:34:00 +10:30
2022-12-12 15:34:00 +10:30
2015-07-20 14:07:40 +09:30
2015-07-20 14:07:40 +09:30
2023-02-06 09:20:28 +01:00
2022-09-22 11:41:11 +02:00
2023-01-09 19:37:48 +01:00
2022-12-12 15:34:00 +10:30
2022-12-12 16:32:04 +10:30
2022-08-22 11:21:19 -04:00
2023-01-25 14:37:56 +01:00
2022-09-22 17:19:11 +09:30