aboutsummaryrefslogtreecommitdiff
path: root/src/script/script.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter@wuille.net>2022-01-10 13:45:03 -0500
committerPieter Wuille <pieter@wuille.net>2022-01-12 11:09:41 -0500
commit79728c4a3d8a74f276daf1e72abbdecdab85a5d8 (patch)
treeca61b3411b91eb06f26919541ec4561f848197c3 /src/script/script.h
parent25e95f9ff89a97b87ce218f28274c3c821b2d54d (diff)
downloadbitcoin-79728c4a3d8a74f276daf1e72abbdecdab85a5d8.tar.xz
Add (sorted)multi_a descriptor and script derivation
Diffstat (limited to 'src/script/script.h')
-rw-r--r--src/script/script.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/script/script.h b/src/script/script.h
index 3425bf8102..ce4e885b50 100644
--- a/src/script/script.h
+++ b/src/script/script.h
@@ -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;