BOLT 2: option_shutdown_anysegwit (Feature 26/27)#672
BOLT 2: option_shutdown_anysegwit (Feature 26/27)#672rustyrussell merged 1 commit intolightning:masterfrom
option_shutdown_anysegwit (Feature 26/27)#672Conversation
cfromknecht
left a comment
There was a problem hiding this comment.
ACK, we may need to revisit depending on whether no input uses external tagging or not
|
ACK e8f8a79 |
|
Can land once rebased! |
|
Assigned features 22/23. |
e8f8a79 to
2df5c06
Compare
|
Rebased on top of master, assigned feature bits as per http://www.erisian.com.au/meetbot/lightning-dev/2020/lightning-dev.2020-08-17-20.08.html |
|
As discussed on IRC, needs feature bit bump to not conflict with #824 |
2df5c06 to
75c02f9
Compare
|
Clean rebase on top of |
765e26d to
4acbb39
Compare
|
Featurebits bumped from 22/23 to 24/25 as per specification meeting 2020/12/20 |
| 4. `OP_0` `32` 32-bytes (version 0 pay to witness script hash) | ||
| 4. `OP_0` `32` 32-bytes (version 0 pay to witness script hash), OR | ||
| 5. if (and only if) `opt_shutdown_anysegwit` is negotiated: | ||
| * `OP_1` through `OP_16` inclusive, followed by a single push of 2 to 40 bytes |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
TheBlueMatt
left a comment
There was a problem hiding this comment.
I'm not sure if it makes sense to clarify, but to check with others, the way I read this, if I disconnect from a peer, then reconnect with new features bits set, you can opt into onlysegwit on an old channel as long as you didn't set an upfront shutdown script. I think thats correct and a good idea.
I agree, this looks desirable and compatible with the PR. |
e127a2a to
42d6d79
Compare
|
OK, since I had to change feature bits anyway, I went for 26/27 since #825 took 24/25. Also renamed from |
opt_shutdown_anysegwitoption_shutdown_anysegwit
option_shutdown_anysegwitoption_shutdown_anysegwit (Feature 26/27)
Opt-in to allow any future segwit script in shutdown as long as it complies with BIP 141 (see lightning/bolts#672).
Opt-in to allow any future segwit script in shutdown as long as it complies with BIP 141 (see lightning/bolts#672).
t-bast
left a comment
There was a problem hiding this comment.
I implemented this in eclair and tested against c-lightning v0.10.0 (compiled with --enable-experimental-features) and didn't find any issue.
Opt-in to allow any future segwit script in shutdown as long as it complies with BIP 141 (see lightning/bolts#672).
|
Applying as per action at meeting 2021-05-24. |
lightning/bolts#672 was merged. Signed-off-by: Rusty Russell <[email protected]> Changelog-Added: Protocol: `option_shutdown_anysegwit` allows future segwit versions on shutdown transactions.
lightning/bolts#672 was merged. Signed-off-by: Rusty Russell <[email protected]> Changelog-Added: Protocol: `option_shutdown_anysegwit` allows future segwit versions on shutdown transactions.
lightning/bolts#672 was merged. Signed-off-by: Rusty Russell <[email protected]> Changelog-Added: Protocol: `option_shutdown_anysegwit` allows future segwit versions on shutdown transactions.
lightning/bolts#672 was merged. Signed-off-by: Rusty Russell <[email protected]> Changelog-Added: Protocol: `option_shutdown_anysegwit` allows future segwit versions on shutdown transactions.
lightning/bolts#672 was merged. Signed-off-by: Rusty Russell <[email protected]> Changelog-Added: Protocol: `option_shutdown_anysegwit` allows future segwit versions on shutdown transactions.
lightning/bolts#672 was merged. Signed-off-by: Rusty Russell <[email protected]> Changelog-Added: Protocol: `option_shutdown_anysegwit` allows future segwit versions on shutdown transactions.
lightning/bolts#672 was merged. Signed-off-by: Rusty Russell <[email protected]> Changelog-Added: Protocol: `option_shutdown_anysegwit` allows future segwit versions on shutdown transactions.
lightning/bolts#672 was merged. Signed-off-by: Rusty Russell <[email protected]> Changelog-Added: Protocol: `option_shutdown_anysegwit` allows future segwit versions on shutdown transactions.
lightning/bolts#672 We check the received shutdown script against higher segwit versions and accept closing to that script if option_shutdown_anysegwit has been negotiated.
lightning/bolts#672 We check the received shutdown script against higher segwit versions and accept closing to that script if option_shutdown_anysegwit has been negotiated.
lightning/bolts#672 We check the received shutdown script against higher segwit versions and accept closing to that script if option_shutdown_anysegwit has been negotiated.
Opt-in to allow any future segwit script in shutdown as long as it complies with BIP 141 (see lightning/bolts#672). This is particularly useful to allow wallet users to close channels to a Taproot address.
Opt-in to allow any future segwit script in shutdown as long as it complies with BIP 141 (see lightning/bolts#672). This is particularly useful to allow wallet users to close channels to a Taproot address.
Opt-in to allow any future segwit script in shutdown as long as it complies with BIP 141 (see lightning/bolts#672). This is particularly useful to allow wallet users to close channels to a Taproot address.
Opt-in to allow any future segwit script in shutdown as long as it complies with BIP 141 (see lightning/bolts#672). This is particularly useful to allow wallet users to close channels to a Taproot address.
Opt-in to allow any future segwit script in shutdown as long as it complies with BIP 141 (see lightning/bolts#672). This is particularly useful to allow wallet users to close channels to a Taproot address.
In bitcoin 0.19.0, standardness rules are going to be relaxed to allow
future witness versions. Once this is widely deployed, it will be safe
to accept them, smoothing use of future segwit versions.
See: bitcoin/bitcoin#15846
Signed-off-by: Rusty Russell [email protected]