aboutsummaryrefslogtreecommitdiff
path: root/src/script/interpreter.h
diff options
context:
space:
mode:
authormruddy <[email protected]>2015-07-30 19:56:00 -0400
committermruddy <[email protected]>2015-07-30 19:56:00 -0400
commitaf3208bfa6967d6b35aecf0ba35d9d6bf0f8317e (patch)
treef61b271e4446dae05172096c63d9320f4dbcaf2d /src/script/interpreter.h
parentMerge pull request #6224 (diff)
downloaddiscoin-af3208bfa6967d6b35aecf0ba35d9d6bf0f8317e.tar.xz
discoin-af3208bfa6967d6b35aecf0ba35d9d6bf0f8317e.zip
Resolve issue 3166.
These changes decode valid SIGHASH types on signatures in assembly (asm) representations of scriptSig scripts. This squashed commit incorporates substantial helpful feedback from jtimon, laanwj, and sipa.
Diffstat (limited to 'src/script/interpreter.h')
-rw-r--r--src/script/interpreter.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/script/interpreter.h b/src/script/interpreter.h
index 35d572f0a..213e8c765 100644
--- a/src/script/interpreter.h
+++ b/src/script/interpreter.h
@@ -83,6 +83,8 @@ enum
SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY = (1U << 9),
};
+bool CheckSignatureEncoding(const std::vector<unsigned char> &vchSig, unsigned int flags, ScriptError* serror);
+
uint256 SignatureHash(const CScript &scriptCode, const CTransaction& txTo, unsigned int nIn, int nHashType);
class BaseSignatureChecker