aboutsummaryrefslogtreecommitdiff
path: root/src/script/interpreter.h
diff options
context:
space:
mode:
authorBen Woosley <ben.woosley@gmail.com>2018-04-10 20:13:32 -0700
committerBen Woosley <ben.woosley@gmail.com>2018-04-10 20:13:32 -0700
commit3450a9b25cd6dbc69daf946bd3a610681ee61317 (patch)
tree7e72d27a4fdc3b92d53f660ac2dcce682f8d22a7 /src/script/interpreter.h
parent0a8054e7cd5c76d01e4ac7234e3883d05f6f5fdd (diff)
Extract consts for WITNESS_V0 hash sizes
Diffstat (limited to 'src/script/interpreter.h')
-rw-r--r--src/script/interpreter.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/script/interpreter.h b/src/script/interpreter.h
index bb7750d783..601a4a866d 100644
--- a/src/script/interpreter.h
+++ b/src/script/interpreter.h
@@ -129,6 +129,10 @@ enum class SigVersion
WITNESS_V0 = 1,
};
+/** Signature hash sizes */
+static constexpr size_t WITNESS_V0_SCRIPTHASH_SIZE = 32;
+static constexpr size_t WITNESS_V0_KEYHASH_SIZE = 20;
+
uint256 SignatureHash(const CScript &scriptCode, const CTransaction& txTo, unsigned int nIn, int nHashType, const CAmount& amount, SigVersion sigversion, const PrecomputedTransactionData* cache = nullptr);
class BaseSignatureChecker