diff options
| author | Pieter Wuille <[email protected]> | 2015-07-28 20:11:20 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2015-11-15 16:06:57 +0100 |
| commit | 6e182686163ce3c15b878bd78c41d8d18db344f1 (patch) | |
| tree | d4e0997b1459def528557d640a480937ffc207fd /src/script/bitcoinconsensus.cpp | |
| parent | Merge pull request #6993 (diff) | |
| download | discoin-6e182686163ce3c15b878bd78c41d8d18db344f1.tar.xz discoin-6e182686163ce3c15b878bd78c41d8d18db344f1.zip | |
Switch to libsecp256k1-based validation for ECDSA
Diffstat (limited to 'src/script/bitcoinconsensus.cpp')
| -rw-r--r-- | src/script/bitcoinconsensus.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/script/bitcoinconsensus.cpp b/src/script/bitcoinconsensus.cpp index b0d5faaf7..79504f6ad 100644 --- a/src/script/bitcoinconsensus.cpp +++ b/src/script/bitcoinconsensus.cpp @@ -6,6 +6,7 @@ #include "bitcoinconsensus.h" #include "primitives/transaction.h" +#include "pubkey.h" #include "script/interpreter.h" #include "version.h" @@ -60,7 +61,13 @@ inline int set_error(bitcoinconsensus_error* ret, bitcoinconsensus_error serror) return 0; } -} // anon namespace +struct ECCryptoClosure +{ + ECCVerifyHandle handle; +}; + +ECCryptoClosure instance_of_eccryptoclosure; +} int bitcoinconsensus_verify_script(const unsigned char *scriptPubKey, unsigned int scriptPubKeyLen, const unsigned char *txTo , unsigned int txToLen, |