aboutsummaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorCory Fields <cory-nospam-@coryfields.com>2014-10-21 16:05:51 -0400
committerCory Fields <cory-nospam-@coryfields.com>2014-10-31 01:13:07 -0400
commit900078aeb4088b63ee271e774a00ccd126628528 (patch)
tree7388397ef14302c47b2fbc1cb982daa58169b6ee /src/script
parent8d2396c9c41cbd5b8746f48f41180697f58b0681 (diff)
downloadbitcoin-900078aeb4088b63ee271e774a00ccd126628528.tar.xz
boost: moveonly: create eccryptoverify.h|cpp and move helper functions there
Eventually (after 0.10) these files will hold the logic for crypto verification routines, and CKey/CPubKey will call into them.
Diffstat (limited to 'src/script')
-rw-r--r--src/script/interpreter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/script/interpreter.cpp b/src/script/interpreter.cpp
index 3625972ebf..e1e242882f 100644
--- a/src/script/interpreter.cpp
+++ b/src/script/interpreter.cpp
@@ -9,6 +9,7 @@
#include "crypto/ripemd160.h"
#include "crypto/sha1.h"
#include "crypto/sha2.h"
+#include "eccryptoverify.h"
#include "key.h"
#include "script/script.h"
#include "uint256.h"
@@ -122,7 +123,7 @@ bool static IsLowDERSignature(const valtype &vchSig) {
// If the S value is above the order of the curve divided by two, its
// complement modulo the order could have been used instead, which is
// one byte shorter when encoded correctly.
- if (!CKey::CheckSignatureElement(S, nLenS, true))
+ if (!eccrypto::CheckSignatureElement(S, nLenS, true))
return error("Non-canonical signature: S value is unnecessarily high");
return true;