aboutsummaryrefslogtreecommitdiff
path: root/src/script/script_error.h
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2020-09-11 14:33:45 -0700
committerPieter Wuille <[email protected]>2020-10-12 17:17:56 -0700
commit8bbed4b7acf4c76eaea8c0e10f3cbf6ba4e53809 (patch)
tree32afa457bf2ead02197781c43087b5f83f499d15 /src/script/script_error.h
parentSupport for Schnorr signatures and integration in SignatureCheckers (BIP 340) (diff)
downloaddiscoin-8bbed4b7acf4c76eaea8c0e10f3cbf6ba4e53809.tar.xz
discoin-8bbed4b7acf4c76eaea8c0e10f3cbf6ba4e53809.zip
Implement Taproot validation (BIP 341)
This includes key path spending and script path spending, but not the Tapscript execution implementation (leaf 0xc0 remains unemcumbered in this commit). Includes constants for various aspects of the consensus rules suggested by Jeremy Rubin.
Diffstat (limited to 'src/script/script_error.h')
-rw-r--r--src/script/script_error.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/script/script_error.h b/src/script/script_error.h
index c79a11a94..59d3e565a 100644
--- a/src/script/script_error.h
+++ b/src/script/script_error.h
@@ -56,6 +56,7 @@ typedef enum ScriptError_t
/* softfork safeness */
SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS,
SCRIPT_ERR_DISCOURAGE_UPGRADABLE_WITNESS_PROGRAM,
+ SCRIPT_ERR_DISCOURAGE_UPGRADABLE_TAPROOT_VERSION,
/* segregated witness */
SCRIPT_ERR_WITNESS_PROGRAM_WRONG_LENGTH,
@@ -70,6 +71,7 @@ typedef enum ScriptError_t
SCRIPT_ERR_SCHNORR_SIG_SIZE,
SCRIPT_ERR_SCHNORR_SIG_HASHTYPE,
SCRIPT_ERR_SCHNORR_SIG,
+ SCRIPT_ERR_TAPROOT_WRONG_CONTROL_SIZE,
/* Constant scriptCode */
SCRIPT_ERR_OP_CODESEPARATOR,