Repository navigation
rpc: decode Miniscript descriptor when possible in decodescript - #27037
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. |
|
Probably slightly better than my version; will test |
|
ACK 03ccc34 might need release note? here's a couple more examples from taproot LN channels discussions that would be nice to include in test to check how it falls back to Offered HTLC: 82012088a914ffffffffffffffffffffffffffffffffffffffff882102ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffad51b2 miniscript incompatible Offered HTLC: 82012088a914ffffffffffffffffffffffffffffffffffffffff882102ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffacb2 |
|
Thanks. I'm adding the incompatible one. The first one is already present: that's the one from your issue but with BIP341's NUMS pubkey as pubkey instead of |
The descriptor inference logic would previously always use a dummy signing provider and would never analyze the witness script of a P2WSH scriptPubKey. Note even a valid Miniscript might not always be decodable from Script without more contextual information (for instance the key preimage for a pk_h).
03ccc34 to
dfc9acb
Compare
|
Added a release note too. |
|
ACK 6699d85 |
|
ACK 6699d85 |
|
utACK 6699d85 |
The descriptor inference logic would previously always use a dummy signing provider and would never analyze the witness script of a P2WSH scriptPubKey.
It's often not possible to infer a Miniscript only from the onchain Script, but it was such a low hanging fruit that it's probably worth having it?
Fixes #27007. I think it also closes #25606.