aboutsummaryrefslogtreecommitdiff
path: root/src/script/miniscript.cpp
diff options
context:
space:
mode:
authorfurszy <matiasfurszyfer@protonmail.com>2023-08-21 17:45:34 -0300
committerfurszy <matiasfurszyfer@protonmail.com>2024-05-03 14:20:44 -0300
commit0c9fedfc45fa7cbd6801ca5fd756863ec9a6911c (patch)
treec8a98525a63c0cbfcdab8a30c7d8aa7d6cc4328e /src/script/miniscript.cpp
parentf7a173b5785cda460470df9a74a0e0f94d7f9a18 (diff)
fix incorrect multisig redeem script size limit for segwit
The multisig script generation process currently fails when the user exceeds 15 keys, even when it shouldn't. The maximum number of keys allowed for segwit redeem scripts (p2sh-segwit and bech32) is 20 keys. This is because the redeem script placed in the witness is not restricted by the item size limit. The reason behind this issue is the utilization of the legacy p2sh redeem script restrictions on segwit ones. Redeem scripts longer than 520 bytes are blocked from being inserted into the keystore, which causes the signing process and the descriptor inference process to fail. This occurs because the multisig generation flow uses the same keystore as the legacy spkm (FillableSigningProvider), which contains the 520-byte limit.
Diffstat (limited to 'src/script/miniscript.cpp')
0 files changed, 0 insertions, 0 deletions