diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2018-04-12 08:16:53 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2018-04-12 08:36:26 +0200 |
commit | e561cf4fa865a89254e2e6839b3ef343e06951a2 (patch) | |
tree | 6eb8e1b42cfaf45fc241277ac7d5cffaf7a5acc3 /src/script/interpreter.h | |
parent | 979f59850c72624137d25f80be4188c3ba6b5fa0 (diff) | |
parent | 3450a9b25cd6dbc69daf946bd3a610681ee61317 (diff) | |
download | bitcoin-e561cf4fa865a89254e2e6839b3ef343e06951a2.tar.xz |
Merge #12939: Extract consts for WITNESS_V0 hash sizes
3450a9b Extract consts for WITNESS_V0 hash sizes (Ben Woosley)
Pull request description:
Tree-SHA512: 57ba84dfa36aa61cabffce747388143cf1c8724dd2fc42aecf93748158b75dbe278b21a32483a100b8c303f6ad01d048da03b0a5c172175febbe70938ed4339d
Diffstat (limited to 'src/script/interpreter.h')
-rw-r--r-- | src/script/interpreter.h | 4 |
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 |