Add (sorted)multi_a descriptor and script derivation

This commit is contained in:
Pieter Wuille
2022-01-10 13:45:03 -05:00
parent 25e95f9ff8
commit 79728c4a3d
4 changed files with 84 additions and 5 deletions

View File

@@ -29,6 +29,9 @@ static const int MAX_OPS_PER_SCRIPT = 201;
// Maximum number of public keys per multisig
static const int MAX_PUBKEYS_PER_MULTISIG = 20;
/** The limit of keys in OP_CHECKSIGADD-based scripts. It is due to the stack limit in BIP342. */
static constexpr unsigned int MAX_PUBKEYS_PER_MULTI_A = 999;
// Maximum script length in bytes
static const int MAX_SCRIPT_SIZE = 10000;