Files
lightning/common
niftynei bcdfac7d1a bolt11: Don't push the size of the witness program for v1+ scripts
For non-v0 witness programs we weren't stripping the data push byte
before writing into the fallback address.

According to BIP14, all witness scripts will be data pushes (up to 40-bytes)
so trimming the datapush byte should be kosher.

From BIP141:

	A scriptPubKey (or redeemScript as defined in BIP16/P2SH) that
	consists of a 1-byte push opcode (for 0 to 16) followed by a
	data push between 2 and 40 bytes gets a new special meaning.
	The value of the first push is called the "version byte". The
	following byte vector pushed is called the "witness program".

Changelog-Fixed: Adding a >0 version witness program to a fallback address now is *just* the witness program, as per bolt11 spec
2023-07-26 05:26:21 +09:30
..
2021-11-14 18:49:46 +01:00
2020-09-23 16:30:36 +09:30
2020-04-04 16:08:49 +10:30
2022-12-06 10:44:39 +01:00
2023-07-11 11:41:15 +09:30
2023-06-15 09:52:31 +09:30
2023-06-23 13:12:42 +09:30
2023-06-23 13:12:42 +09:30
2023-04-10 09:41:56 +09:30
2023-04-10 09:41:56 +09:30
2020-04-04 16:08:49 +10:30
2020-04-04 16:08:49 +10:30
2022-09-19 10:18:55 +09:30
2021-12-30 14:36:55 +10:30
2020-02-05 14:19:12 +01:00
2018-02-08 22:49:34 +01:00
2022-10-26 11:29:06 +10:30
2020-01-23 16:17:42 +10:30
2022-01-20 15:24:06 +10:30
2022-01-20 15:24:06 +10:30
2023-07-11 11:41:15 +09:30
2023-07-11 11:41:15 +09:30
2023-07-11 11:41:15 +09:30
2019-04-16 21:22:13 +00:00
2023-01-12 11:44:10 +10:30
2022-01-20 15:24:06 +10:30
2022-10-26 11:29:06 +10:30
2023-06-01 09:28:39 +09:30