Replace SignatureHash() with class TxSignatureHasher #4989
pull jtimon wants to merge 2 commits into bitcoin:master from jtimon:sighash changing 12 files +87 −62-
jtimon commented at 7:02 am on September 27, 2014: contributor
-
jtimon commented at 7:47 am on September 27, 2014: contributorThis could continue with https://github.com/jtimon/bitcoin/tree/sighash2 and https://github.com/jtimon/bitcoin/tree/sighash3 or simply https://github.com/jtimon/bitcoin/tree/sighash_abstract. With an abstract class the libscript could use a minimal duplicated version of CTransaction if we decide to do that, probably only temporarily, until core is more divided (again, if we decide that including the whole core.o in libscript is too much right now).
-
in src/script/interpreter.h: in d89fa6c718 outdated
10+ 11 #include <vector> 12 #include <stdint.h> 13 #include <string> 14 15+class uint256;
Diapolo commented at 11:55 am on September 27, 2014:Nit: This should stay at the end.in src/script/sigcache.h: in d89fa6c718 outdated
21+ CachingSignatureChecker(const SignatureHasher& hasherIn, bool storeIn=true) : SignatureChecker(hasherIn), store(storeIn) { } 22+ 23+ bool VerifySignature(const std::vector<unsigned char>& vchSig, const CPubKey& vchPubKey, const uint256& sighash) const; 24+}; 25+ 26+#endif
Diapolo commented at 11:56 am on September 27, 2014:Should be:#endif // H_BITCOIN_SCRIPT_SIGCACHE
Diapolo commented at 11:57 am on September 27, 2014: noneMay I suggest changing the copyright (in the files header) of edited files directly to be just MIT :)?jtimon force-pushed on Sep 29, 2014jtimon force-pushed on Sep 29, 2014jtimon commented at 11:44 pm on September 29, 2014: contributorMhmm, @theuni one of the tests builds didn’t failed when it had to https://travis-ci.org/bitcoin/bitcoin/builds/36618762sipa commented at 11:45 pm on September 29, 2014: memberIt failed to compile…BitcoinPullTester commented at 11:59 pm on September 29, 2014: noneAutomatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/p4989_7ffba2382622ec9529cdd318cc12bc50ebf5b0b3/ for binaries and test log. This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/ Contact BlueMatt on freenode if something looks broken.theuni commented at 0:26 am on September 30, 2014: memberYes, OSX doesn’t build the tests because they can’t run there (it’s a cross build from Linux). I figured we had enough builders handling the tests, so instead the OSX spends its time testing the dmg packing process.
I’d be fine with switching the tests on so that they build if you guys would prefer that, but I’m not sure it would do much for us.
jtimon commented at 1:21 am on September 30, 2014: contributorIt’s fine, I thought you may not be aware of this or something. Thanks for the explanation.jtimon force-pushed on Oct 6, 2014jtimon commented at 0:50 am on October 7, 2014: contributorHere’s another version of this PR built on top of #5054 : https://github.com/jtimon/bitcoin/tree/sighash_explicitjtimon force-pushed on Oct 7, 2014jtimon renamed this:
Replace SignatureHash() with class SignatureHasher
Replace SignatureHash() with class TxSignatureHasher
on Oct 7, 2014jtimon force-pushed on Oct 8, 2014jtimon force-pushed on Oct 9, 2014Replace SignatureHash() with class TxSignatureHasher 399e8ce6d7Change SignatureChecker constructor and make its TxSignatureHasher a reference ce4929ab6djtimon force-pushed on Oct 9, 2014jtimon commented at 9:14 pm on October 29, 2014: contributorClosing until at least 0.10jtimon closed this on Oct 29, 2014
MarcoFalke locked this on Sep 8, 2021
github-metadata-mirror
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-19 09:12 UTC
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-19 09:12 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me