Michael Ford
b9a36b15bf
Make comments in /src/script doxygen compatible
10 years ago
Pieter Wuille
1f847936c9
Avoid a bunch of copying/conversion in script/sign
10 years ago
Philip Kaufmann
b4347f6035
minor code style cleanup after recent merges
...
- add a missing license header
- correct some header orderings etc.
10 years ago
Pavel Janík
84738627ce
Fix all header defines
10 years ago
Cory Fields
d2e74c55bd
boost: moveonly: split CPubKey and friends to new files
10 years ago
Cory Fields
900078aeb4
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.
10 years ago
jtimon
561e9e9de9
MOVEONLY: Move script/compressor out of script and put CTxOutCompressor (from
...
core) with it
10 years ago
jtimon
4a3587d8db
MOVEONLY: Separate CTransaction and dependencies from core
10 years ago
Luke Dashjr
2aa632921e
Enable customising node policy for datacarrier data size with a -datacarriersize option
10 years ago
Peter Todd
6004e77b92
Improve CScriptNum() comment
...
Edited-by: Pieter Wuille <pieter.wuille@gmail.com>
10 years ago
Pieter Wuille
698c6abb25
Add SCRIPT_VERIFY_MINIMALDATA (BIP62 rules 3 and 4)
...
Also use the new flag as a standard rule, and replace the IsCanonicalPush
standardness check with it (as it is more complete).
10 years ago
Pieter Wuille
d752ba86c1
Add SCRIPT_VERIFY_SIGPUSHONLY (BIP62 rule 2)
10 years ago
Cory Fields
3a757c5294
fix build with libc++ after 85c579e
10 years ago
Cory Fields
85c579e3a6
script: add a slew of includes all around and drop includes from script.h
...
Lots of files ended up with indirect includes from script.h.
10 years ago
Cory Fields
db8eb54bd7
script: move ToString and ValueString out of the header
10 years ago
Cory Fields
e9ca4280f3
script: add ToByteVector() for converting anything with begin/end
...
This should move to a util header once their dependencies are cleaned up.
10 years ago
Cory Fields
066e2a1403
script: move CScriptID to standard.h and add a ctor for creating them from CScripts
...
This allows for a reversal of the current behavior.
This:
CScript foo;
CScriptID bar(foo.GetID());
Becomes:
CScript foo;
CScriptID bar(foo);
This way, CScript is no longer dependent on CScriptID or Hash();
10 years ago
Pieter Wuille
9df9cf5a9f
Make SCRIPT_VERIFY_STRICTENC compatible with BIP62
...
* Delete canonical_tests.cpp, and move the tests to script_tests.cpp.
* Split off SCRIPT_VERIFY_DERSIG from SCRIPT_VERIFY_STRICTENC (the BIP62 part of it).
* Change signature STRICTENC/DERSIG semantics to fail the script entirely rather than the CHECKSIG result (softfork safety, and BIP62 requirement).
* Add many autogenerated tests for several odd cases.
* Mention specific BIP62 rules in the script verification flags.
10 years ago
Andy Alness
9d7cd4c598
Don't return an address for invalid pubkeys
10 years ago
Philip Kaufmann
5eed8c21c7
minor license, header end comment etc. cleanup in /script
...
- ensure all licenses are just MIT
- add a missing header end comment
- ensure alphabetical ordering
10 years ago
Pieter Wuille
e790c370b5
Replace SCRIPT_VERIFY_NOCACHE by flag directly to checker
10 years ago
Pieter Wuille
5c1e798a8e
Make signature cache optional
10 years ago
Pieter Wuille
c7829ea797
Abstract out SignatureChecker
10 years ago
Cory Fields
be6d87aa60
script: don't read past the end
10 years ago
ENikS
1e73504865
Fixing C4146 warning
...
Rebased-By: Wladimir J. van der Laan <laanwj@gmail.com>
10 years ago
ENikS
219372f1dd
script: Fix reference into empty vector run time exception
...
Edit by laanwj: `begin_ptr(sourcedata) + sourcedata.size()` -> `end_ptr(sourcedata)`
10 years ago
ENikS
cda45b5131
Reinitializing list's begin iterator after few elements were erased from the head
10 years ago
ENikS
6134b43ba9
Fixing condition 'sabotaging' MSVC build
10 years ago
Pieter Wuille
0be990ba34
Move CTxDestination from script/script to script/standard
10 years ago
Philip Kaufmann
2d79bba36b
cleanup new script files (no code changes)
...
- add missing header end comments
- ensure alphabetical ordering
- update copyright year and license
10 years ago
jtimon
6dcfda2dc4
Don't pass nHashType to EvalScript nor CheckSig
10 years ago
jtimon
2b23a87599
Don't pass nHashType to VerifyScript
10 years ago
jtimon
e088d65acb
Separate script/sign
10 years ago
jtimon
9294a4bbe7
Separate CScriptCompressor
10 years ago
jtimon
c4408a6c85
Separate script/standard
10 years ago
jtimon
da03e6ed7c
Separate script/interpreter
10 years ago
jtimon
cbd22a50c4
Move CScript class and dependencies to script/script
10 years ago