diff options
| author | Ben Woosley <[email protected]> | 2018-04-10 20:13:32 -0700 |
|---|---|---|
| committer | Ben Woosley <[email protected]> | 2018-04-10 20:13:32 -0700 |
| commit | 3450a9b25cd6dbc69daf946bd3a610681ee61317 (patch) | |
| tree | 7e72d27a4fdc3b92d53f660ac2dcce682f8d22a7 /src/script/interpreter.h | |
| parent | Merge #12731: Support serialization as another type without casting (diff) | |
| download | discoin-3450a9b25cd6dbc69daf946bd3a610681ee61317.tar.xz discoin-3450a9b25cd6dbc69daf946bd3a610681ee61317.zip | |
Extract consts for WITNESS_V0 hash sizes
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 bb7750d78..601a4a866 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 |